1.2.4e: Object-oriented languages with an understanding of classes, objects, methods, attributes, inheritance, encapsulation and polymorphism.
Keyword | Definition |
---|---|
Attributes | Variables or data fields that are associated with a class or an object, and that represent the state or the properties of the class or the object. |
Classes | Blueprints or templates that define the structure and behaviour of objects, and that specify the attributes, methods, and inheritance relationships of objects. |
Encapsulation | The process of hiding the implementation details or the internal structure of a class or an object, and of control access to a private attribute using a public method |
Methods | Functions or procedures that are associated with a class or an object, and that define the behaviour of the class or the object. |
Objects | Instances of classes, which are the basic building blocks of object-oriented languages, and which represent the data and behaviour of a program. |
Polymorphism | The ability of an object to behave differently depending on its type, its class, or its context, and of a method to operate on objects of different classes without knowing their specific type or class. |