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.
What is the Namo Bharat corridor inaugurated by Prime Minister Modi part of?
The Reserve Bank of India has imposed how much penalty on Axis Bank for failure to comply with Know Your Customer (KYC) regulations after RBI’s Inspec...
Which Indian-American was crowned Miss India USA 2024?
The US is going to donate 2.2 million doses of pediatric vaccines to which country?
Which minister is responsible for Ports, Shipping and Waterways?
Which statement is correct about “MQ-9 Reaper”?
a. This drones is from America
b. The Defence Ministry has appro...
According to the PwC report titled The Indian Payments Handbook – 2022-27, UPI transactions are likely to reach 1 billion per day by______ , accountin...
What new method have Indian scientists developed related to quantum communications?
What led to the permanent closure of the Afghanistan Embassy in Delhi, effective from November 23?
Where was India's 1st International Olympic Research Conference held?