Puedes seguirnos en

BUSCADOR

Engineering

Abstract data type in Data Structure

The concept at abstraction is commonly found in computer science. A big program is never written as a monolithic piece of program, instead it is broken down in smaller modules called as functions and each module is developed independently.


When the program is hierarchical organized, then the main program utilizes services of the functions. The main program uses the services of the functions without knowing their implementation details. Thus a level of abstraction is created.

When an abstraction is created, our concern is limited to «what it can do» and not «how it is done»

Abstraction for primitive types (char, int, float) is provided by the compiler. For example, we use integer type data and also, perform various operations on them without knowing:

  1. Representation.
  2. How various operations are performed on them.

Example:

int x,y,z;

Anuncio publicitario

x=-13;

Constant -13 is converted to 2´s complement and then stored  in x. Representation is handled by the compiler.

Basically abstraction is hiding the complexity of implementation form the user. The implementation is handled by the compiler itself.

Anuncio publicitario
Escrito por

Administrador de ENGGDRCAOS. Canal dedicado especialmente a la formación del estudiante que aspira a ser ingeniero. Todos los videos son Ingles. Apasionado del universo Apple, estudiante de Ingeniería y Gamer por vocación.

Publicidad

ARTÍCULOS RELACIONADOS

Engineering

Singly linked list is a dynamically allocated list, which consists of one or more nodes. Each node contains a pointer which holds the address...

Engineering

Function prototyping is one of the key improvements added to the C++ functions. When a function call is encountered, the compiler checks the function...

Engineering

If we want two computers to communicate over a network, then the protocols on each layer of OSI model in the sending computer should...

Engineering

When virtual functions are created for implementing late binding, there are some basic rules that satisfy the compiler requirements: The virtual function must be...