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: Where did Buddha give his first sermon?
Ans: Sarnath
Ans: Sarnath
Q: The 'Virus War Exercise' was recently organized in which city?
Ans: Ajmer
Ans: Ajmer
Q: Where is the '24th Mother Teresa International Award' organized on 29 August 2024?
Ans: Dubai
Ans: Dubai
Q: What is the term for the attraction between oppositely charged atoms or ions?
Ans: ionic bond
Ans: ionic bond
Q: After whom has an asteroid of the International Astronomical Union been named on March 24, 2024?
Ans: Jayant Murthy
Ans: Jayant Murthy
Q: The distribution of thermal speeds depends strongly on temperature. as temperature increases, the speeds are shifted to higher values and the distribution is what?
Ans: broadened
Ans: broadened
Q: Pakistani Christian Joseph Francis Pereira has become the first resident of which state to get citizenship under CAA?
Ans: Goa
Ans: Goa
Q: Protozoa that cause malaria are spread by a vector, entering the blood through the bite of what insect?
Ans: mosquito
Ans: mosquito
Q: Which source describes ancient religious practices?
Ans: Manuscripts
Ans: Manuscripts
Q: Which city had a system of water tanks?
Ans: Mathura
Ans: Mathura
Q: Where was the United Nations Biodiversity Conference (COP-16) held?
Ans: Colombia
Ans: Colombia
Q: On May 6, 2024, who won the Miami Grand Prix?
Ans: Lando Norris
Ans: Lando Norris
Q: By what percentage did India's milk production increase in 2023-24?
Ans: 3.78%
Ans: 3.78%
Q: Which medal did Navdeep Singh win in the men's javelin throw event at the Paris Paralympics on September 8, 2024?
Ans: Gold
Ans: Gold
Q: Which state's 'Masali village' has become the country's first border village to run on solar energy?
Ans: Gujarat
Ans: Gujarat
