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 is #include iostream h in c++?
Explain the use of this pointer?
What are signs of manipulation?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
What are inline functions? What is the syntax for defining an inline function?
What is the rule of three?
What is a memory leak c++?
What are the vectors in c++?
What is the use of function pointer?
Const char *p , char const *p What is the difference between the above two?
What does scope resolution operator do?
Differentiate between realloc() and free().
Define 'std'.
Which software is used to run c++ program?
What is meant by const_cast?