OOP definitions Flashcards
1
Q
What is the definition of instantiation?
A
The process of creating an object from a class template.
2
Q
What is the definition of ensapsulation?
A
The bundling of data with the methods that operate on adn restrict direct access to it.
3
Q
The advantage of encapsulation in OOP?
A
It helps keep data related to an object safe - it can’t accidentally be altered by another part of the program without using the code provided in the methods, keeping the programmer in control.