Interview Questions

What’s the difference between an interface and abstract class?

C# Interview Questions and Answers


(Continued from previous question...)

174. What’s the difference between an interface and abstract class?

In an interface class, all methods are abstract - there is no implementation. In an abstract class some methods can be concrete. In an interface class, no accessibility modifiers are allowed. An abstract class may have accessibility modifiers.

(Continued on next question...)

Other Interview Questions