1 | 6 | |||||||||||||||||||||||
5 | 2 | 8 | ||||||||||||||||||||||
7 | ||||||||||||||||||||||||
3 | ||||||||||||||||||||||||
4 | ||||||||||||||||||||||||
1. A mechanism that allows a new class to inherit properties and behavior from an existing class, promoting code reuse.
2. A special method in a class that is called when an object is instantiated, initializing its attributes.
3. A concept in OOP that allows defining complex systems while hiding unnecessary details.
4. The ability of different classes to be treated as instances of the same class through a common interface, allowing for flexibility in code.
5. Class attributes that cannot be accessed directly from outside the class, typically prefixed with an underscore or double underscore.
6. The bundling of data and methods that operate on that data within a single unit or object.
7. A function defined within a class that describes the behavior of instances of that class.
8. An instance of a class that contains data and methods related to that data.