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:
18
SomeOfCSharpFeatures/Inheritance/Motorbike.cs
Normal file
18
SomeOfCSharpFeatures/Inheritance/Motorbike.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
|
||||
namespace Inheritance;
|
||||
|
||||
public class Motorbike : Vehicle
|
||||
{
|
||||
public bool HasSidecar { get; set; }
|
||||
public Motorbike(string model, double horsePower, bool sidecar)
|
||||
: base(model, horsePower)
|
||||
{
|
||||
Console.WriteLine($"Creating car {model}");
|
||||
this.HasSidecar = sidecar;
|
||||
}
|
||||
public override void Start()
|
||||
{
|
||||
Console.WriteLine("Start Motorbike " + Model);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user