How is an interface different from a class? code example
Example: diff between class and interface
A class describes the attributes and behaviors of an object .
An interface contains behaviors that a class implements.
A class describes the attributes and behaviors of an object .
An interface contains behaviors that a class implements.