what is data Abstraction? and give example
Answer Posted / namitha
Data abstraction refers to, providing only essential
features by hiding its background details.
example:
class result
{
int marks;
float percentage;
char name[20];
void input();
void output();
}
main()
{
bank b1;
b1.input();
b1.output();
}
in the above example, b1 is an object calling input and
output member functions, but that code is invisible to the
object b1.
| Is This Answer Correct ? | 263 Yes | 58 No |
Post New Answer View All Answers
What are function prototypes?
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
What are the various operations performed on stack?
How a pointer differs from a reference?
Write a program which employs Recursion
What is the basic difference between C and C++?
What is the difference between an enumeration and a set of pre-processor # defines?
What's the order in which the objects in an array are destructed?
What is helper in c++?
How the programmer of a class should decide whether to declare member function or a friend function?
What are c++ redistributables?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
What are c++ files?
What is a rooted hierarchy?
What is size_type?