Question
Which feature of OOP allows hiding implementation
details while showing only the necessary functionality?Solution
Abstraction allows a programmer to focus on essential features of an object while ignoring the underlying complexity. It defines the "what" of functionality without exposing the "how." For example, an interface Vehicle may have a method drive() without specifying how it operates. Different classes like Car and Bike can implement drive() in their way while hiding their internal details. Abstraction is achieved using abstract classes and interfaces. It simplifies system design by providing a clear separation of concerns, enabling developers to focus on high-level interactions rather than low-level details. Why Other Options Are Wrong Option A : "Inheritance" Inheritance enables code reuse by sharing functionality but does not inherently involve hiding implementation details. Option C : "Encapsulation" Encapsulation protects and restricts access to data but is more concerned with access control than hiding implementation logic. Option D : "Polymorphism" Polymorphism deals with dynamic method binding and does not focus on hiding details. Option E : "Composition" Composition models "whole-part" relationships and is unrelated to abstraction.
Since which year has the Reserve Bank of India (RBI) been observing Financial Literacy Week (FLW)?
Which one of the following pairs is correctly matched?
Which committee did the RBI establish to discuss Capital Account Convertibility?
What economic indicator is derived by subtracting depreciation from the Gross National Product (GNP)?
In which market structure does a firm have the autonomy to set prices?
Which of the following statements is correct about the calculation of national income?
What is the rank of India in Global Hunger Index (GHI) in 2016?
Which sector contributes the most to India's GDP?
Which of the following is not an investment expenditure in goods and services?
Which of the following statements are true regarding “Inclusive Growth”?
i. The main idea behind inclusive growth is to include SCs, STs, ...