Last Flashcards
One of the key features of object-oriented programming,
refers to the bundling of fields and methods inside a single class.
- It prevents outer classes from accessing and changing fields and methods of a class.
- This also helps to achieve data hiding.
Encapsulation
Allowed us to restrict unauthorized access from outside the class.
Data Hiding
One of the key features of OOP that allows us to create a new class from an existing class.
Inheritance
The new class that is created from inheritance is known as?
Subclass
The existing class from where the child class is derived is known as?
Superclass
Is used to call the method of the parent class from the method of the child class.
Super keyword
Also known as runtime polymorphism.
Method Overriding
A single subclass extends from a single superclass.
Single Inheritance
A subclass extends from a superclass and then the same subclass acts as a superclass for another class.
Multilevel Inheritance
Multiple subclasses extend from a single superclass.
Heirarchical Inheritance
A single subclass extends from
multiple superclasses.
Multiple Inheritance
A combination of hierarchical and multiple inheritance,where a class inherits from multiple classes, some of which are derived from
a common base class.
Hybrid Inheritance
It allows a single interface to be used for different type of actions. It simply means more than one form.“Poly” means MANY and “Morph”means “Take Different Forms”
Polymorphism
The same method is present in
both the superclass and the
subclass. Then, the method in
the subclass overrides the same
method in the superclass.
Method Overriding
Multiple methods with the same name but different parameters
Method Overloading
Refers to the concept of hiding complex implementation details and exposing only the essential features of a software component to the user.
Abstraction