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
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png