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 is iostream::eof inside a loop condition considered wrong?
Describe delete operator?
What is the difference between C and CPP?
What is class in c++ with example?
Write a program in C++ for Fibonacci series
Can we use this pointer inside static member function?
What is ios flag in c++?
Is dev c++ free?
Who discovered c++?
What can c++ be used for?
What jobs can you get with a c++ certification?
What is virtual base class?
What are the three forms of cin.get() and what are their differences?
What is rtti in c++?
What is the use of structure in c++?