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.
How many products are covered under the ODOP model implemented by PM-FME across India?
Which musical instrument does Pandit Dayashankar Ji specialize in playing?
With reference to the Zoji La Pass, consider the following statements:
1.   It is a high mountain pass located in the Kargil district of Lada...
Who were the Indian players in the men’s doubles final at the Malaysia Open Super 1000?
Which organization won the 'Global Water Tech Award 2024' in the organization category for its environmental conservation efforts?
Which financial institution raised ₹6,252 crore through bonds in the recent bond market activity?
Which of the following constitutions is popularly known as the peace constitution?
Who took oath as the Chief Minister of Arunachal Pradesh for the third consecutive term?
Which portal has been launched to monitor child care institutions across the country?
Which scientist proposed the principle stating that total energy per unit mass of a flowing fluid is constant?