OOP Flashcards
1
Q
Purpose of constructor
A
to create a new object/instance of the class it belongs to, initialising a new object.
2
Q
Define encapsulation
A
The process of describing a class or object by hiding all details on how it was written/constructed