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 a buffer c++?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
How is new() different from malloc()?
Why is it necessary to use a reference in the argument to the copy constructor?
What is meant by const_cast?
Is c++ harder than java?
How does list r; differs from list r();?
Why the usage of pointers in C++ is not recommended ?
What is the sequence of destruction of local objects?
What is c++ mutable?
Write a function that swaps the values of two integers, using int* as the argument type?
Why do we use the using declaration?
What is the fastest c++ compiler?
What are mutator methods in c++?
Can a list of string be stored within a two dimensional array?