MCQ Single Best Answer Moderate

QWhat is the main advantage of using inheritance in object-oriented programming?

ID: #23892 ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL 83 views
Question Info
#23892Q ID
ModerateDifficulty
ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOLTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Reducing code duplication and promoting code reusability.
  • B Hiding implementation details.
  • C Making all members private.
  • D Enabling polymorphism.
Correct Answer: Option A

Explanation

Explanation:

 

Inheritance allows a child class to acquire properties and methods from a parent class, eliminating the need to duplicate code. This promotes code reusability and simplifies maintenance.

Share This Question

Challenge a friend or share with your study group.