InterviewSolution
| 1. |
What do you understand about Abstraction in the context of Object-Oriented Programming languages? What are its advantages? |
|
Answer» Abstraction Is obfuscating the internal implementation and focusing solely on the services. It is accomplished by utilising abstract classes and interfaces and then putting them into action. Only the features of an object that distinguish it from all other objects are required. Only the most crucial details are highlighted, while the remainder is hidden from the user or reader. Let us consider an example of abstraction in the real world: By emphasizing the set of services offered by the bank via the ATM GUI screen, the bank is highlighting the set of services offered by the bank without highlighting internal implementation. Abstraction can be divided into three CATEGORIES as follows:
The following are the advantages of abstraction:
|
|