Azhar
Azhar

Reputation: 20670

can we implement polymorphism using interface in c#?

can we implement polymorphism using interface in c#? any example .

Upvotes: 3

Views: 617

Answers (1)

Richard
Richard

Reputation: 108975

Yes.

E.g. See the way many collections in the framework implement IList<T> so code that only depends on that interface can use any of those collections.

Upvotes: 5

Related Questions