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.
Among the following sectors, which is officially categorized as a ‘priority sector’ for bank lending under RBI guidelines in India?
Which form of DNA helix is predominantly present in cell?
Carbonation weathering involves reactions with:
Crazy Chick disease in poultry is caused due to the deficiency of which of the following?
The dry weights of Phalaris minor in control and treated plot are 600 g/m² and 300 g/m² , respectively. What will be the weed control efficiency?Â
As a general rule, symptoms of nitrogen deficiency is first noticeable in:
Triticale is a hybrid between which two crops :
National Bureau of fish genetic resource situated at ___
What is the primary cause of soil salinization in agricultural fields?
The arrangement where farmers enter formal agreements with input suppliers or agribusinesses to produce certain crops or livestock under specified condi...