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
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
Ans: Mumbai
Q: What is the most common cause of hearing loss?
Ans: loud sounds
Ans: loud sounds
Q: What part of the body protects the brain?
Ans: cranium (skull)
Ans: cranium (skull)
Q: What indicates a failing brake master cylinder?
Ans: Soft brake pedal
Ans: Soft brake pedal
Q: What does a red circle with a number indicate?
Ans: Speed limit
Ans: Speed limit
Q: What are different versions of a gene known as?
Ans: genomes
Ans: genomes
Q: Who has launched the world's first meningitis vaccine?
Ans: Nigeria
Ans: Nigeria
Q: Which sector is India’s largest contributor to exports?
Ans: Services
Ans: Services
Q: Who founded the Tughlaq dynasty?
Ans: Ghiyasuddin Tughlaq
Ans: Ghiyasuddin Tughlaq
Q: Who won the 'Best Actor' award in IIFA 2024?
Ans: Shahrukh Khan
Ans: Shahrukh Khan
Q: Which event started the Mexican Revolution?
Ans: Overthrow of Porfirio Diaz
Ans: Overthrow of Porfirio Diaz
Q: Which ritual showed a king’s power in Vedic times?
Ans: Ashvamedha
Ans: Ashvamedha
Q: Which body recommends tax devolution?
Ans: Finance Commission
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
Ans: magnetic bond
Q: The exchange of heat stops once what property of equilibrium between the pan and the water is achieved?
Ans: thermal
Ans: thermal
