abstract
The C# modifier for a class that cannot be created directly, or a member with no body that every derived class must supply.
In more detail
An abstract class is a partial design meant only as a base for other classes. abstract class Carrier demands a Name from every carrier while still sharing a working Quote method.
Related terms
- inheritance — Declaring one class or type as a specialised version of another, so it receives the parent's members and can be used wherever the parent is expected.
- virtual — The C# modifier for a member that has a working body a derived class may replace with override.
- override — The C# modifier that declares a replacement for an inherited virtual or abstract member, or for methods such as Equals and ToString.
Taught in
- Classes, Interfaces, and Object-Oriented C# — Modern .NET Core, C# & Enterprise Microservices