Abstraction vs encapsulation! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Abstraction vs encapsulation!

Why are abstraction and encapsulation two different pillars of oop when abstraction can be achive by encapsulation and vice versa? From my POV, the pillars of oop should be: i.Inheritance ii.Polymorphism iii.Abstraction/Encapsulation(because implementing one can directly result in implementaion of another)

28th Apr 2021, 1:52 PM
Sameer Crestha
Sameer Crestha - avatar
0 Answers