Explain the concept of abstracion and encapsulation with
one example. What is the difference between them?
Answer Posted / purba phalguni mishra, gandhi
ENCAPSULATION->
* It is a mechanism which unites the code and the data it
manipulates.
*It keeps them safe from external interference and misuse,
thus enforcing the separation between specification and
implementation of ADTs. Hence it enables the debugging of
program easily.
DATA ABSTRACTION->
* It is the creation of new data types [ADTs] using
encapsualted-items that are well suited to an application
to be programmed.
* It is a powerful technique resulting in optimal, more
readable and flexibles programs.
*******U r most welcome to challenge with my answer*****
Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What are the benefits of interface?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is the difference between abstraction and polymorphism?
What is the real time example of inheritance?
What are the two different types of polymorphism?
what are the ways in which a constructors can be called?
What is multilevel inheritance explain with example?
How to use CMutex, CSemaphore in VC++ MFC
Which is not an object oriented programming language?
any one please tell me the purpose of operator overloading
What is the real life example of polymorphism?
What is this pointer in oop?
How long to learn object oriented programming?
How many human genes are polymorphic?
What is oops in simple words?