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
Why cstdlib is used in c++?
What is an object in c++?
What is ios class in c++?
what are function pointers?
What is a type library?
Can non graphic characters be used and processed in C++?
Is it possible to use a new for the reallocation of pointers ?
What is a manipulator in c++?
What are manipulators in c++ with example?
What is a tuple c++?
Explain explicit container.
What is the exit function in c++?
Is java easier than c++?
What is the use of dot in c++?
What are activex and ole?