Object-Oriented Programming Flashcards
1
Q
Class
A
A blueprint for creating objects. Defines attributes (data) and methods (functions)
2
Q
Object
A
An instance of a class. Contains actual data and can perform operations defined by its class
3
Q
Inheritance
A
A mechanism where one class (subclass) inherits attributes and methods from another class (superclass)
4
Q
Encapsulation
A
The bundling of data and methods that operate on that data within one unit, and restricting access to some of the object’s components
5
Q
Polymorphism
A
The ability to present the same interface for different underlying data types