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
Is java based off c++?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What is time h in c++?
What is the difference between an enumeration and a set of pre-processor # defines?
Explain the differences between private, public and protected and give examples.
What is srand c++?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
Is java as fast as c++?
What is == in programming?
What are the unique features of C++.
What do you mean by ‘void’ return type?
What is wrapper class in c++?
write a porgram in c++ that reads an integer and print the biggest digit in the number
Differentiate between the message and method in c++?
What are the 2 main types of data structures?