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

What is a .lib file in c++?

563


What is the use of endl in c++ give an example?

608


What is the rule of three?

564


What are the benefits of pointers?

590


What is object in c++ wikipedia?

566






How to access a variable of the structure?

581


What is a type library?

682


What is difference between n and endl in c++?

582


Tell me what are static member functions?

610


Can you declare an array without a size in c++?

567


What are special characters c++?

562


What is data types c++?

541


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

579


Is swift faster than go?

608


Which one is better- macro or function?

644