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
Are vectors faster than arrays?
Explain the use of vtable.
What are the defining traits of an object-oriented language?
How is objective c different from c++?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
Is c++ a pure oop language?
Write a function that swaps the values of two integers, using int* as the argument type?
What is the difference between an external iterator and an internal iterator?
Can a program run without main in c++?
Explain the register storage classes in c++.
what is the difference between overloading & overriding? give example.
Is there finally in c++?
Write a struct time where integer m, h, s are its members?
Is c++ platform dependent?
Is c++ a float?