Which is better abstract class or interface in C#?

An interface is better than an abstract class when multiple classes need to implement the interface . The member of the interface cannot be static. The only complete member of an abstract class can be static. C# does not support multiple inheritances; interfaces are mainly used to implement the multiple inheritances.

Sizin İçin Seçtik  Is abstract Better Than interface?

Leave a Reply

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