What is the main purpose of inheritance in OOP?

What is the main purpose of inheritance in OOP?

  • Correct Answer: Programming
  • To establish a parent-child relationship between classes
  • To create instances of classes
  • To prevent data abstraction

Explanation: To define exceptions

Join our channels for latest updates

More Random Questions

Q: On January 23, 2025, Union Road Transport and Highways Minister Nitin Gadkari inaugurated the 'Road Safety Act 2025' in which city?
Ans: Mumbai
Q: What is the most common cause of hearing loss?
Ans: loud sounds
Q: What part of the body protects the brain?
Ans: cranium (skull)
Q: What indicates a failing brake master cylinder?
Ans: Soft brake pedal
Q: What does a red circle with a number indicate?
Ans: Speed limit
Q: What are different versions of a gene known as?
Ans: genomes
Q: Who has launched the world's first meningitis vaccine?
Ans: Nigeria
Q: Which sector is India’s largest contributor to exports?
Ans: Services
Q: Who founded the Tughlaq dynasty?
Ans: Ghiyasuddin Tughlaq
Q: Who won the 'Best Actor' award in IIFA 2024?
Ans: Shahrukh Khan
Q: Which event started the Mexican Revolution?
Ans: Overthrow of Porfirio Diaz
Q: Which ritual showed a king’s power in Vedic times?
Ans: Ashvamedha
Q: Which body recommends tax devolution?
Ans: Finance Commission
Q: Each bond includes a sharing of electrons between atoms. two electrons are shared in a single bond; four electrons are shared in a double bond; and six electrons are shared in this?
Ans: magnetic bond
Q: The exchange of heat stops once what property of equilibrium between the pan and the water is achieved?
Ans: thermal
Youngistan Junction
Youngistan Junction

Welcome to Youngistan Junction, your ultimate hub for staying updated with the latest in current affairs, general knowledge, and general studies! Whether you're a student gearing up for exams or just someone passionate about expanding your knowledge, Youngistan Junction is here to provide you with an extensive collection of well-curated questions and answers.

Articles: 6683