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.
The Reserve Bank of India removed restrictions on individuals from opening interest-earning Foreign Currency Accounts (FCA) in order to make India’s I...
What is forfeiting in the context of international trade?
The RBI has allowed international trade settlement in rupees for which AD banks need to open ____________, in terms of Regulation 7(1) of Foreign Exchan...
Which of the statement given below is/are not correct?
What do niche financial centers focus on?
Pradhan Mantri Mudra Yojana is aimed at increasing the confidence of young, educated or skilled workers who would now be able to aspire to become first ...
According to the IFSCA Circular issued on January, 2024, what purpose code should be used by AD banks in their Balance of Payments (BOP) file to report ...
What is the purpose of PNB MetLife's newly launched Genius plan?
Which among the following is NOT a qualitative measure of monetary policy undertaken by the RBI in India?
The purpose of trial balance is to know about the: