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:

  • Procedural Abstraction: As the name implies, procedural abstraction entails a series of procedures in the form of functions that are followed ONE after the other to achieve abstraction through classes.
  • Data Abstraction: As the phrase implies, abstraction is the process of extracting information from a set of data that describes an entity.
  • Control Abstraction: Control abstraction is achieved by creating the program in a WAY that encloses object details.

The following are the advantages of abstraction:

  • The main benefit of using abstraction in programming is that it allows you to group several RELATED classes as siblings
  • Because there are no highlights to internal implementation, users or communities can accomplish security.
  • The enhancement will become easier because any modifications to the internal system may be made without affecting end users.
  • It gives the end-user additional flexibility in how they can use the system.
  • It expands the application's functionality.


Discussion

No Comment Found