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
Tell me what are static member functions?
What is the main function c++?
How does java differ from c and c++?
Explain how to initialize a const data member.
What is a storage class? Mention the storage classes in c++.
What is anonymous object in c++?
Refer to a name of class or function that is defined within a namespace?
How the delete operator differs from the delete[]operator?
Why is "using namespace std;" considered bad practice?
What are the characteristics of friend functions?
Which one is a preferred language C or C++? Why?
What is the difference between c++ and turbo c++?
Write about a nested class and mention its use?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
What does ctime() do?