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
What are libraries in c++?
Explain how we implement exception handling in c++?
Differentiate between a constructor and a method in C++.
How do I download c++?
Explain container class.
Explain shallow copy?
What is difference between c++ and c ++ 14?
How are Structure passing and returning implemented by the compiler?
What is the best c++ book for beginners?
Explain what is class definition in c++ ?
What is a lambda function c++?
Is c++ platform dependent?
What is command line arguments in C++? What are its uses? Where we have to use this?
What are the various storage classes in C++?
Explain terminate() function?