What ‘abstract’ does

When you declare a class as abstract, it cannot be instantiated. Only subclasses of an abstract class can be instantiated if they are not abstract themselves.

When you declare a method as abstract, that method is not implemented in the current class, i.e. it has no body

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: