What is the difference between abstract class and interface in CSharp? DotNet C# Question 62 of 100

Опубликовано: 19 Март 2026
на канале: Tech Interview Questions
225
2

DotNet Interview Question 62 of 100:
What is the difference between an abstract class and an interface in CSharp?

Answer: An abstract class can provide complete, default code and/or just the details that have to be overridden. An interface, by contrast, is a contract that contains only the signatures of methods, properties, events or indexers.