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
Why c++ is the best language?
Explain what are accessor methods?
Is empty stack c++?
What are disadvantages of pointers?
What operator is used to access a struct through a pointer a) >> b) -> c) *
Does std endl flush?
Where are setjmp and longjmp used in c++?
Is c++ used anymore?
Explain the difference between struct and class in terms of access modifier.
What do you mean by persistent and non persistent objects?
what is Member Functions in Classes?
What is #include iostream?
What causes a runtime error c++?
What is &x in c++?
What is the full form of c++?