Difference between Interface and Class
Contents
Comparison between Class and Interface
The Key Difference between Interface and Class is that Class can be instantiated. Whereas Interface can never be instantiated.

Comparison Chart
Interface | Class |
---|---|
In an Interface we can only declare member functions, we cannot define them. | In a class we can only define member function, we can not define theme. |
“Interface” keyword is used to create an interface. | “Class” keyword is used to create a class. |
Interface does not allow static member functions. | In a class, static member functions are allowed to define. |
We cannot create objects of any interface. | We can create objects of a class. |
We cannot define constructors in the interface. | We can define constructors in a class. |
Interface supports multiple inheritances. | Class does not support multiple inheritances. |
Methods and variables are public. | Methods and variables are not declared public. |