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


Please Help Members By Posting Answers For Below Questions

What are the benefits of interface?

585


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2040


What is the difference between abstraction and polymorphism?

619


What is the real time example of inheritance?

645


What are the two different types of polymorphism?

677






what are the ways in which a constructors can be called?

1585


What is multilevel inheritance explain with example?

630


How to use CMutex, CSemaphore in VC++ MFC

4335


Which is not an object oriented programming language?

544


any one please tell me the purpose of operator overloading

1967


What is the real life example of polymorphism?

611


What is this pointer in oop?

557


How long to learn object oriented programming?

572


How many human genes are polymorphic?

577


What is oops in simple words?

585