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
Explain static and dynamic memory allocation with an example each.
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
Do you know about C++ 11 standard?
What is the sequence of destruction of local objects?
What is setf in c++?
Explain what are accessor methods?
Which compiler does turbo c++ use?
Explain the concept of memory leak?
Why c++ does not have finally?
Explain how to initialize a const member data.
What do c++ programmers do?
What are shallow and deep copies?
How do you master coding?
Write about the stack unwinding?
How static variables and local variablesare similar and dissimilar?