What is abstract class and what is it good for?

Experience Level: Mid-level
Tags: C#

Answer

Answer

  • Similar to interface, except the interface doesn't have any implementation and abstract class can have it.
  • Useful for providing default implementation that is then used by a subclasses.
Related C# job interview questions
.NET developer - API
.NET developer - API

Are you learning C#? Try our test we designed to help you progress faster.

Test yourself