what is data Abstraction? and give example
Answer Posted / mak
Data Abstraction is leaving behind the unwanted properties
and taking only the Essential properties for defining the class.
Example:
When writing a class for a Employee, say John as Object
will require (Essential Properties) Empno, Dob, Doj, Salary,
Salary calculation logic as function etc.,
But john will be having properties like Height, Weight,
Color etc., which is not required for the class we are
defining..
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is c++ faster than c?
Is facebook written in c++?
What is the use of namespace std in C++?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
What are the main features of c++?
How did c++ start?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
What is a manipulative person?
What is the main function c++?
Can you overload the operator+ for short integers?
Can java be faster than c++?
Describe new operator and delete operator?
Explain what are accessor methods?
When do we run a shell in the unix system? How will you tell which shell you are running?
Is ca high or low level language?