What’s the difference between an abstract and interface class? | C# interview Questions 33

Abstract Class:

Can have both abstract (no implementation) and concrete methods.
A class can inherit only one abstract class.
Can contain fields and properties.
Interface:

Only contains method signatures (no implementation).
A class can implement multiple interfaces.
Cannot contain fields, only properties with signatures.

Leave a Reply

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