Which is better to use interface or abstract class?

Abstract classes should be used primarily for objects that are closely related, whereas interfaces are best suited for providing a common functionality to unrelated classes . Interfaces are a good choice when we think that the API will not change for a while.

Sizin İçin Seçtik  What is the difference between a concrete and and an abstract class?

Leave a Reply

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