예제 #1
0
 public Bike(Tire tire, Engine engine, Battery battery, double surface, double weight, double bikeSurface, double trs, double tra)
 {
     this.tire = tire;
     this.engine = engine;
     this.battery = battery;
     this.surface = surface;
     this.weight = weight;
     this.bikeSurface = bikeSurface;
     this.trs = trs;
     this.tra = tra;
 }
예제 #2
0
 public Bike()
 {
     this.tire = new Tire();
     this.engine = new Engine();
     this.battery = new Battery();
     this.surface = Surfaces.crrAsphalt;
     this.weight = 198;
     this.bikeSurface = 0.8;
     this.trs = 3.15;
     this.tra = 1;
 }