what is data Abstraction? and give example
Answer Posted / abhay shukla
ata abstraction is a process of representing the essential
features without including implementation 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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
How is new() different from malloc()?
How the keyword struct is different from the keyword class in c++?
What is virtual function? Explain with an example
Which software is best for coding?
How come you find out if a linked-list is a cycle or not?
Is it possible to have a recursive inline function in c++?
What size is allocated to the union variable?
Is c better than c++?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
Which of the following is evaluated first: a) && b) || c) !
What is array give example?
What is a c++ class?
which of the following is not an secondary constant a) array b) real c) union
What is size of string in c++?