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

How do you explain polymorphism?

587


What is debug class?what is trace class? What differences are between them? With examples.

1604


What exactly is polymorphism?

602


Which method cannot be overridden?

576


which feature are not hold visual basic of oop?

1721






Is abstract thinking intelligence?

592


Can bst contain duplicates?

664


What is encapsulation process?

575


How Do you Code Composition and Aggregation in C++ ?

24190


What is difference between abstraction and encapsulation?

592


any one please tell me the purpose of operator overloading

1965


what is the sylabus for priliminaries?

1685


Why interface is used?

549


why reinterpret cast is considered dangerous?

1898


What is inheritance write a program to show use of inheritance?

611