OOP is a programming paradigm based on the concept of “objects,” which may contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods.There is significant diversity of OOP (object-oriented programming) languages, but the most popular ones are class-based, meaning that objects are instances of classes, which typically also determine their type.
Classes
A class is a construct or prototype from which objects are created. A class defines constituent members which enable class instances to have state and behavior. Data field members enable a class object to maintain state and methods enable a class object’s behavior. |
|
|