what is data Abstraction? and give example

Answer Posted / kamal lochan jena.

It is process of creating a new data_type using encapsulated
items.
Ex: class Name
{
int age;
char Name[20];
public:
getdata();
putdata();
};

Here the class body contains the encapsuleted data items.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the iterator and generic algorithms.

1741


Define what is constructor?

822


What causes a runtime error c++?

846


Give 10 points of differences between C & C++.

881


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

2021


Why is main an int?

760


Why do we use setw in c++?

878


what is c++

2088


What is class invariant in c++?

979


What is the identity function in c++? How is it useful?

803


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2271


What is the copy-and-swap idiom?

844


Can we distribute function templates and class templates in object libraries?

816


What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

902


what is C++ objects?

938