OOP definitions Flashcards
(5 cards)
What is the definition of instantiation?
The process of creating an object from a class template.
What is the definition of ensapsulation?
The bundling of data with the methods that operate on adn restrict direct access to it.
The advantage of encapsulation in OOP?
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.
What is polymorphism?
It is the practice of changing methods in a subclass that has been inherited from its parent class.
What is overriding?
Overriding is redefining a method within a subclass and altering the code so it functions differently and gives a different output.