PI06 i PI06-1. Docker definitions for MSSQL and Postgres. Data seeder/generator for countries and people. Entity Framework example with variants for Postgres and MSSQL
This commit is contained in:
13
SomeOfCSharpFeatures/Inheritance/ElectricCar.cs
Normal file
13
SomeOfCSharpFeatures/Inheritance/ElectricCar.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Inheritance;
|
||||
|
||||
public class ElectricCar : Car
|
||||
{
|
||||
public int BatteryCapacity { get; set; }
|
||||
public int? Range { get; set; }
|
||||
|
||||
public ElectricCar(string model, double horsePower, int doors, int batteryCapacity) :
|
||||
base(model, horsePower, doors)
|
||||
{
|
||||
this.BatteryCapacity = batteryCapacity;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user