What is the difference between abstraction & abstract class
Abstraction: is a design principle which says, hiding unwanted details and showing what is wanted.
Abstraction is every where. For eg: when you make your variables private in your class, then outside world can't see directly the
internal data of your class. This is one kind of data abstraction. (we are hiding the internal details of the data)
Abstract class: is an incomplete class. This is a kind of a house under construction which is not yet completed.
Since abstract classes are incomplete, you can't create any object for that class. It doesn't make any sense to create object.
But any one can inherit abstract classes to give extra definition for that class to make it more concrete.
Back To Top