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
Which method cannot be overridden?
Why is oop useful?
what are the ways in which a constructors can be called?
What is the problem with multiple inheritance?
What is methods in oop?
Can we override main method?
How oops is better than procedural?
any one please tell me the purpose of operator overloading
What is overloading and its types?
What is the use of oops?
What is a class and object?
What is the diamond problem in inheritance?
Which is better struts or spring?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is polymorphism explain?