Difference between an interface and an abstract class

Two most important differences are: 1. A class can implement several interfaces but can inherit from a single abstract class (or any class for that matter) 2. Interfaces do not contain any implementation while abstract classes can contain some default implementation of methods.

No comments:

Post a Comment