Junior
From PDF
OOP
C# OOP
What is the difference between interface-based and abstract class-based abstraction?
Feature Abstract Class Interface
Methods Can have abstract +
concrete methods
Only abstract methods (C# 8+ allows default
implementation)
Fields Can have fields Cannot have fields
Inheritance Single inheritance Multiple interfaces can be implemented
Constructo
Can have constructors Cannot have constructors
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png