MCQEasy1 mark
1
Choose the correct answers to the questions from the given options. (Do not copy the questions, write only the correct answers.)
A mechanism where one class acquires the properties of another class:
Topic: Inheritance
Previous-year question practice database
Try it
Pick an option and check your answer. The full worked answer is below either way.
Answer
Exam answer
(b) Inheritance.
Explanation
Inheritance lets a new class take over the variables and methods of an existing one, so common code is written once and reused. Keep the four principles distinct: inheritance = acquiring from a parent class, polymorphism = one name behaving in many forms, encapsulation = binding data with methods and hiding it, abstraction = showing only essential features and hiding the detail.
In words
Inheritance.
More from Encapsulation
Which of the following is NOT an access specifier?2026Post office is an example for __________ access specifier.2025The access specifier that gives least accessibility is __________.2024Assertion (A): Static method can access static and instance variables.
Reason (R): Static variables can be accessed only by static method.2024A method which is a part of a class rather than an instance of the class is termed as:2023The access modifier that gives least accessibility is:2022