Junior From PDF OOP C# OOP

What is the difference between an interface and a class?

Feature Interface Class

Implementatio

No implementation (except default

methods)

Can have full

implementation

Fields Cannot have fields Can have fields

Instantiation Cannot instantiate Can instantiate

Inheritance Can inherit multiple interfaces Single class inheritance only

More from C# Programming Tutorial

All questions for this course
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details