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
-
What are the advantages of using 'using' keyword in C# and why would you use it?
C# Junior -
What is a namespace in C# and what is it good for?
C# Junior -
What is covariance and contravariance?
.NET ASP.NET MVC ASP.NET WebAPI ASP.NET WebForms C# Senior -
Have you ever consumed some 3rd party API? What was it? Have you ever designed your own API? Could you describe it a bit?
.NET Architecture ASP.NET WebAPI C# Web services Mid-level -
What is serialization/deserialization? What types of serialization do you know?
.NET C# Mid-level