PassengerVehicle taxi = new Car();
taxi.AddPassengers(2);
// ... time to switch vehicles
PassengerVehicle touristCart = new Rickshaw();
touristCart.AddPassengers(taxi.UnloadPassengers());
Inheritance - A Practical Example
The Entity Framework Core library has a class called DbContext
It provides base functionality for working with databases
You inherit from DbContext and provide specifics of your database in your class