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 new keyword in oops?
to find out the minimum of two integer number of two different classes using friend function
What is purpose of inheritance?
What is oops in simple words?
How do you define a class in oop?
What is oops and why we use oops?
write knight tour problem which is present in datastructure
Why is object oriented programming so hard?
What is abstraction with example?
Why do pointers exist?
What are the types of abstraction?
What is difference between abstraction and encapsulation?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is overloading in oops?
Why is there no multiple inheritance?