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.

Sizin İçin Seçtik  How do you declare an object in C++?

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

Sizin İçin Seçtik  Which is better to use abstract class or interface in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *