Question d’entretien chez Duke Energy

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

Réponse à la question d'entretien

Utilisateur anonyme

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