Learning OOP concepts especially interested to understand Abstraction and Encapsulation in depth.
Checked out the below already
Abstraction VS Information Hiding VS Encapsulation
difference between abstraction and encapsulation?
I found very hard to understand those concepts with out a real and simple example class/code snippet.
One of my colleagues said abstraction is nothing but creating abstract class and normal class that protects its member variable with scope is called Encapsulation.
Is there a simple way I can understand and help others to understand what exactly they are, rather than repeating the below?
See Question&Answers more detail:osAbstraction and encapsulation are complementary concepts: abstraction focuses on the observable behavior of an object... encapsulation focuses upon the implementation that gives rise to this behavior... encapsulation is most often achieved through information hiding, which is the process of hiding all of the secrets of object that do not contribute to its essential characteristics.