Domanda di colloquio di Duke Energy

What is the difference between `abstract class` and `interface` in C#?

Risposta di colloquio

Anonimo

7 nov 2023

An abstract class can have both abstract and non-abstract methods, while an interface can only have method declarations without implementations. A class can inherit from only one abstract class but can implement multiple interfaces.

1