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 is encapsulation in simple terms?
What is polymorphism and its types?
How do you achieve runtime polymorphism?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is the main purpose of inheritance law?
What is advantage of inheritance?
Where You Can Use Interface in your Project
What is class encapsulation?
What is ambiguity in inheritance?
What is the fundamental idea of oop?
Write a c++ program to display pass and fail for three student using static member function
What is overloading in oop?
What is overriding in oop?
What is meant by oops concept?