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 the differences between new and malloc?
Write syntax to define friend functions in C++.
Explain the problem with overriding functions
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
How can you quickly find the number of elements stored in a static array?
What do you mean by public protected and private in c++?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
Are c and c++ similar?
What is an operator function? Describe the function of an operator function?
program explaining feautures of c++
Search for: what is pair in c++?
What is jump statement in C++?
Are iterators pointers?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
Are php strings immutable?