what is data Abstraction? and give example
Answer Posted / ankur
the data abstraction defining the essential features without
representing the background detail.
class result
{
int marks;
float percentage;
char name[40];
void input();
void output();
}
void main()
{
bank b1;
b1.input();
b1.output();
}
the other example in student detail we just use the
stu_id,stu_branch,stu_clg, we we'll not represent it 's
backgroung as,who is the mother of student,etc thing .
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what are Access specifiers in C++ class? What are the types?
Explain the differences between private, public and protected and give examples.
What is an adaptor class or wrapper class in c++?
What are multiple inheritances (virtual inheritance)?
Explain the different access specifiers for the class member in c++.
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
Why c++ is so important?
How do I start a c++ project?
How many different levels of pointers are there?
How can you quickly find the number of elements stored in a static array?
What is overloading unary operator?
Explain the use of vtable.
Write a code/algo to find the frequency of each element in an array?
What relational operators if statements in c++?
What is private inheritance?