# Inheritance in C#

A derived class names its base class after a colon. It inherits every member of the base class, but its code can use only the public and protected ones, never the private ones; and every class inherits from object in the end.

![Cheat sheet: Inheritance in C#](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/2d708b5a3c5c4498b42b594b25d248a6.webp)

- Category: C#
- Level: Apprentice
- Tags: c-sharp, Inheritance (c-sharp), OOP, protected (c-sharp)
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/introduction-to-inheritance-in-csharp-inheritance-in-csharp-cheat-sheet
