What is difference between interface and abstract class C++?

An “interface” embodies the concept of a contract between clients and an implementation. An “abstract class” contains code that you want to share between multiple implementations of an interface . While the interface is implied in an abstract classes methods, sometimes it is useful to specify the contract in isolation.12 Eki 2012

Sizin İçin Seçtik  Why do we use abstract class in Dart?

Leave a Reply

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