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.
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рд╣рд┐рдВрджреА рд╡рд╛рдХреНрдп рдХрд╛ рдЕрдВрдЧреНрд░реЗрдЬреА рдореЗрдВ рдЕрдиреБрд╡рд╛рдж рдХрд░рд┐рдпреЗ-я┐╜...
рджрд┐рдП рдЧрдП рд╡рд┐рдХрд▓реНрдкреЛрдВ рдореЗрдВ рд╕реЗ рд╡рд╣ рд╡рд╛рдХреНрдп рдЪреБрдиреЗ рдЬреЛ рдкреНрд░рд╢реНрди рдореЗрдВ рджрд┐рдП я┐╜...
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ Haggling of price ┬а рд╢рдмреНрдж рдХрд╛ рд╡рд┐рддреНрддреАрдп рд╢рдмреНрджрд╛рд╡рд▓реА рдореЗ...
The discharged petition has been kept in abeyance рдореЗрдВ discharged petition рдХрд╛ рдЕрд░реНрде рд╣реИ -
рджрд┐рдП рдЧрдП рдкреНрд░рддреНрдпреЗрдХ рдкреНрд░рд╢реНрди рдореЗрдВ рдПрдХ рд╣рд┐рдВрджреА рдХрд╛ рд╡рд╛рдХреНрдп рджрд┐рдпрд╛ рдЧрдпрд╛ я┐╜...
рджрд┐рдП рдЧрдП рдкреНрд░рддреНрдпреЗрдХ рдкреНрд░рд╢реНрди рдореЗрдВ рдПрдХ рд╣рд┐рдВрджреА рдХрд╛ рд╡рд╛рдХреНрдп рджрд┐рдпрд╛ рдЧрдпрд╛ я┐╜...
рджрд┐рдП рдЧрдП рд╡рд╛рдХреНрдп рдХрд╛ рд╕рд╣реА рдЕрдиреБрд╡рд╛рдж рдЪреБрдирд┐рдпреЗред
рд╣рдо рдЛрдгрд┐рдпреЛрдВ рд╕реЗ рдЬрд┐рддрдирд╛ рдЬя┐╜...
┬ардирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ Pursuit ┬а рд╢рдмреНрдж рдХрд╛ рдЗрдирдореЗ рд╕реЗ рдХреНрдпрд╛ рдЕрд░реНрде рдирд╣реАрдВ рд╣реЛрдЧ...
Reimbursement рдХреЗ рд▓рд┐рдП рд▓рд┐рдП рд╕рд╣реА рдкрд╛рд░рд┐рднрд╛рд╖рд┐рдХ рд╢рдмреНрдж рд╣реИ
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рдХреМрди рд╕рд╛ тАШstrategy рд╢рдмреНрдж рдХрд╛ рд╢рдмреНрджрд╛рд╡рд▓реА рдореЗрдВ рд╕рд╣реА рд╣рд┐рдВрджреА я┐╜...