Question
Which of the following best describes Abstraction in
Object-Oriented Programming (OOP)?Solution
Abstraction is a core concept of OOP that focuses on hiding unnecessary implementation details while exposing only the essential features of an object. This is achieved through abstract classes and interfaces. For instance, a Car class might expose methods like start() or drive() without detailing how the engine works internally. Abstraction simplifies the development process by allowing programmers to focus on high-level logic rather than low-level complexities. It also enhances security by preventing direct access to sensitive parts of an application. Why Other Options Are Incorrect : 2. Restricting access to certain parts of an object to protect data : This describes Encapsulation , not Abstraction. Encapsulation involves bundling data and methods together and using access modifiers to control visibility. 3. Combining different objects into a single unit to represent a relationship : This describes Aggregation , where objects are linked to represent "has-a" relationships, like a Library having Books. 4. Allowing multiple classes to share the same method name but with different implementations : This defines Polymorphism , specifically method overriding or overloading, and is unrelated to abstraction. 5. Establishing a parent-child relationship between classes : This is Inheritance , where one class derives from another, enabling code reuse and hierarchy building.
Which agribusiness company is planning to invest Rs 300 crore over the next 3-4 years to set up an integrated palm oil complex, including a crude palm o...
Which of the following statements about the 38th National Games are correct?
1. Uttarakhand is hosting the National Games for the first time.
...- Who received the 2025 Abel Prize, often described as the "Nobel Prize of Mathematics"?
Which Indian state recently became the first to implement a 'Right to Water' law?
Recently, where was the “World Green Economy Forum” launched?
Which of the following is an INCORRECTLY stated social impact of the Green Revolution?
Which of the following planets is also called the "morning star" and the "evening star"?
Which ancient city in Uttar Pradesh is known as the oldest continuously inhabited city in the world?
With reference to the 'BIMSTEC Youth Summit 2025,' consider the following statements:
1. It was held in Gandhinagar, Gujarat.
2. The theme...
Who captained the Indian U19 Women’s team to their first ICC U19 Women’s T20 World Cup title in 2023?