Question OOP-ABS-0053
MediumWhat is the difference between abstraction and encapsulation?
- A.
Encapsulation is a design idea; abstraction is a keyword
- B.
They are exactly the same
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Abstraction and Interfaces question
What is the difference between abstraction and encapsulation?
Encapsulation is a design idea; abstraction is a keyword
They are exactly the same
Sign up free to see the answer and a step-by-step explanation.
Abstraction is only for interfaces; encapsulation only for classes
Abstraction hides complexity by showing only what is needed; encapsulation hides data by bundling it with methods and restricting access