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


Please Help Members By Posting Answers For Below Questions

How is c++ different from java?

563


What does h mean in maths?

574


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

684


What is command line arguments in C++? What are its uses? Where we have to use this?

581


Describe the syntax of single inheritance in C++?

651






Can you sort a set c++?

532


Can a class be static in c++?

573


What is the use of object in c++?

573


How would you use the functions memcpy(), memset(), memmove()?

625


Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

623


What is expression parser in c++

1889


Why null pointer is used?

584


What is virtual destructor ans explain its use?

608


what is a reference variable in C++?

670


Describe linkages and types of linkages?

571