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: What was a key factor driving ad strength despite macroeconomic issues?
Ans: Reduced consumer spending
Q: On January 28, 2025, a multi-layering clothing system designed by DRDO, named as HIMKAVACH, was launched. What is its special feature?
Ans: Protection from +20°C to -60°C
Q: The sex of developing crocodilians is determined by what during incubation?
Ans: the temperature of the eggs
Q: A pregnant patient develops gestational diabetes. Which intervention is first-line?
Ans: Dietary modification
Q: What indicates a failing thermostat in a vehicle?
Ans: Engine overheating
Q: What are polymers of amino acids called?
Ans: polypeptides
Q: Which country first used poison gas in World War I?
Ans: Germany
Q: What is the fine for not carrying a PUC certificate?
Ans: ₹10,000
Q: Which modern vaccine prevents diphtheria?
Ans: DPT
Q: Which organism is most commonly associated with pyelonephritis in pregnancy?
Ans: Escherichia coli
Q: How many jobs did private-sector employers add in Jan-Feb 2025?
Ans: 250,000
Q: What should a driver do at a “No Overtaking” sign?
Ans: Avoid overtaking
Q: What is the function of the fuel filter in a vehicle?
Ans: Removes impurities from fuel
Q: What once most common bird in north america became extinct in the 1800s?
Ans: the rock penguin
Q: As of May 9, 2024, which country leads globally in remittances?
Ans: India
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