Abstract and Partial Classes

Let's learn about abstract and partial classes.

What is an abstract class?

Abstract classes are commonly used for inheritance and can’t be instantiated. Abstract methods within an abstract class must be contained in the child class or the program won’t compile. Virtual methods are not required in child classes.

Syntax

public abstract class Talk
{
  // Empty abstract class
}

Example

Get hands-on with 1200+ tech skills courses.