A class describes the attributes and behaviors of an object. An interface contains behaviors that a class implements . A class may contain abstract methods, concrete methods. An interface contains only abstract methods.
What is the difference between a class and interface?
A class describes the attributes and behaviors of an object. An interface contains behaviors that a class implements . A class may contain abstract methods, concrete methods. An interface contains only abstract methods.