Friday, April 8, 2011

Difference between Abstract and Final Classes

  • Abstract class can not be instantiated. In other words we can't create direct object to Abstract class. But for Final classes we can create an instance.
  • Abstract class must be extended where are Final class can not be.
  • Final class can't contain abstract methods but Abstract class may contains final methods.

1 comment:

  1. An abstract class doesn’t *have* to be extended. You can have an abstract class with purely static methods.

    ReplyDelete