Question: what is the difference between class and encapsulation?
Answer: A class is a way to organise data whereas encapsulation is a design choice. Encapsulation without classes isn't possible and classes without encapsulation makes a class the same as a "struct". As you can see, both terms depend on each other. ... give me the clear example of class which also use encapsulation as well..