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 does the following statement mean? int (*a)[4]

822


Evaluate !(1&&1||1&&0) a) Error b) False c) True

953


What is the use of c++ programming language in real life?

777


What are the stages in the development cycle?

778


Differentiate between a constructor and a destructor in c++.

774


Write about the role of c++ in the tradeoff of safety vs. Usability?

807


When do we run a shell in the unix system? How will you tell which shell you are running?

738


Why do we use classes in programming?

773


Explain about vectors in c ++?

792


What is the use of default constructor?

811


What is data types c++?

773


What is a Default constructor?

1225


What is ios class in c++?

792


What is private inheritance?

838


When are exception objects created?

794