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
How are the features of c++ different from c?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
Explain Memory Allocation in C/C++ ?
How can we check whether the contents of two structure variables are same or not?
What is istream and ostream in c++?
What's the "software peter principleā?
How do you clear a buffer in c++?
What do you mean by early binding?
When do we use copy constructors?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
You want to link a c++ program to c functions. How would you do it?
What do you know about near, far and huge pointer?
How a macro differs from a template?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
How can I disable the "echo" feature?