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 does int * mean in c++?
Can a new be used in place of old mallocq? If yes, why?
What do you understand by a pure virtual member function?
What is the use of string in c++?
Explain one method to process an entire string as one unit?
How can I improve my c++ skills?
What are the types of pointer?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
Which is the best c++ compiler for beginners?
What is a syntax in c++?
Explain abstraction.
How is computer programming useful in real life?
How can I learn c++ easily?
Are strings immutable in c++?
Which of the following is evaluated first: a) && b) || c) !