Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is data Abstraction? and give example

Answer Posted / varun k. singh

The concept of abstraction relates to the idea of hiding data that are not needed for presentation. The main idea behind data abstraction is to give a clear separation between properties of data type and the associated implementation details. This separation is achieved in order that the properties of the abstract data type are visible to the user interface and the implementation details are hidden. Thus, abstraction forms the basic platform for the creation of user-defined data types called objects. Data abstraction is the process of refining data to its essential form. An Abstract Data Type is defined as a data type that is defined in terms of the operations that it supports and not in terms of its structure or implementation.

In object-oriented programming language C++, it is possible to create and provide an interface that accesses only certain elements of data types. The programmer can decide which user to give or grant access to and hide the other details. This concept is called data hiding which is similar in concept to data abstraction.

Reasons for the need of Abstraction
Flexibility in approach:
By hiding data or abstracting details that are not needed for presentation, the programmer achieves greater flexibility in approach.

Enhanced Security:
Abstraction gives access to data or details that are needed by users and hide the implementation details, giving enhanced security to application.

Easier Replacement:
With the concept of abstraction in object-oriented programming language, it is possible to replace code without recompilation. This makes the process easier and saves time for users.

Modular Approach:
In object-oriented programming language C++, the abstraction concept helps users to divide the project application into modules and test each of them separately. Then all modules are integrated and ultimately tested together. This approach makes the application development easier.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is enum c++?

1248


Does c++ have string data type?

1112


When does a 'this' pointer get created?

1104


What is the difference between global variables and local variable

1067


What is the difference between a pointer and a link in c ++?

1057


How do you declare A pointer to function which receives an int pointer and returns a float pointer

1230


What is the difference between mutex and binary semaphore?

1240


What is c++ used for in games?

1172


Explain selection sorting. Also write an example.

1056


What is the need of a destructor? Explain with the help of an example.

1029


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

1068


How a macro differs from a template?

1180


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1110


What is the arrow operator in c++?

1032


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

1421