Computer Applications
Which of the following principles uses base and derived classes?
- Encapsulation
- Inheritance
- Polymorphism
- Data hiding
OOP Intro Java
7 Likes
Answer
Inheritance
Reason — Inheritance is the principle that uses base and derived classes. The class that inherits properties is called the derived class (or subclass), while the class from which it inherits is called the base class (or superclass).
Answered By
5 Likes
Related Questions
Which is not an Object Oriented Programming language?
- Python
- Eiffel
- Small talk
- COBOL
Which OOP principle enables operating a TV set using a remote control without knowing its internal mechanism ?
- Data Abstraction
- Encapsulation
- Insulation
- Inheritance
What is the literal meaning of Polymorphism?
- Using different operations for same purpose
- Using same operation for different purposes
- Using same data in different functions
- None of them
Which of the following is not true for Encapsulation?
- Data and functions are loosely attached.
- Data and functions are wrapped together.
- Data is secured from getting mishandled.
- None of them.