Section 12 Chapter 67 - Basic Concepts of OOP Flashcards
Class
A template for an object that defines the attributes and methods of objects in that class
Instantiation
The creation of an object of a particular class
Object
An instance of a class
Reference variable
A variable that holds a pointer to where a particular object is stored
Encapsulation
The hiding of internal attributes and methods of an object. It also refers to the fact that an objects attributes are tied to that specific instance of the class and changing them will not affect attributes of other objects
Inheritance
A class can inherit from another class. The inheriting class will then be able to use all the methods and attributes of its parent class that have an appropriate scope (private will not be inherited, but protected and public will be)
Association
When two objects have a relation but there is no ownership or inheritance between them