public Auto(string merk, string type, string omschrijving, int prijs, DateTime bouwdatum, brandstof stof) { this.merk = merk; this.type = type; this.omschrijving = omschrijving; this.prijs = prijs; this.bouwdatum = bouwdatum; leeftijd = bouwdatum - DateTime.Now; this.stof = stof; }
public PriveAuto(string merk, string type, string omschrijving, int prijs, DateTime bouwdatum,brandstof stof, int brandstofverbruik) : base(merk, type, omschrijving, prijs, bouwdatum, stof) { this.brandstofverbruik = brandstofverbruik; }
public LeaseAuto(string merk, string type, string omschrijving, int prijs, DateTime bouwdatum,brandstof stof, int leaseKosten, int bijtellingspercentage) : base(merk, type, omschrijving, prijs, bouwdatum,stof) { this.leaseKosten = leaseKosten; this.bijtellingspercentage = bijtellingspercentage; }