Ejemplo n.º 1
0
 public Volkswagen(
     double price, string model, int horsePower, string MotorName, int NumCyl, Fuel _Fuel,
     double fuelUsage, int year, int fuelTank,
     Transmisson transmisson, Bitmap picture)
     : base(
         price, model, horsePower, fuelUsage, year,
         fuelTank, transmisson, picture
         )
 {
     base._Motor = new Motor(MotorName, NumCyl, _Fuel);
 }
Ejemplo n.º 2
0
 protected Car(
     double price, string model, int horsePower, double fuelUsage, int year, int fuelTank,
     Transmisson transmisson, Bitmap picture
     )
 {
     _Price       = price;
     _Model       = model;
     _HorsePower  = horsePower;
     _FuelUsage   = fuelUsage;
     _Year        = year;
     _FuelTank    = fuelTank;
     _Transmisson = transmisson;
     _Icon        = picture;
 }