Start learning 50% faster. Sign in now
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 is K related to M?
How is A related to V?
How was G's father related to A's sister's mother
How is H is related to C?
If 'O' is 'M's daughter; 'N' is 'O's brother; 'K is 'N's father and 'F' is 'K's mother, then how is F related to 'M'?
How is I’s mother related to J?
How is K related to N?
How is M related to L?
Introducing a woman, a man said, 'Her sister’s mother is the only daughter of my grandmother.' How is the man related to this woman?