What is abstract class and what is it good for?
Experience Level: Medior
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
What are the advantages of using 'using' keyword in C# and why would you use it?
C# JuniorWhat is a namespace in C# and what is it good for?
C# JuniorWhat is covariance and contravariance?
.NETASP.NET MVCASP.NET WebAPIASP.NET WebFormsC# SeniorHave you ever consumed some 3rd party API? What was it? Have you ever designed your own API? Could you describe it a bit?
.NETArchitectureASP.NET WebAPIC#Web services MediorWhat is serialization/deserialization? What types of serialization do you know?
.NETC# Medior