what is data Abstraction? and give example
Answer Posted / chealsha
Data abstraction is a process of representing essential
features without showing the background details.
For example:
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
int a,b;
cout<<"enter a";
cin>>a;
b=sqrt(a);
cout<<"square of a="<<b;
getch();
}
In the above example,we are doing the square of "a" where
we can only see/use the sqrt function but we cant see the
background deails like coding of sqrt().
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are virtual constructors/destructors?
write a porgram in c++ that reads an integer and print the biggest digit in the number
Explain register storage specifier.
Define copy constructor.
What are proxy objects in c++?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
What is the difference between new() and malloc()?
Where and why do I have to put the "template" and "typename" keywords?
Is python better than c++?
What is the history of c++?
Is c++ an oop?
How new/delete differs from malloc()/free?
What is extern c++?
Write about an iterator class?
What is vector processing?