Example #1
0
 public function __construct($a, $b, $num, $perKm, $mon, $se)
 {
     $this->number = $num;
     $this->price_per_km = $perKm;
     $this->money = $mon;
     parent::__construct($a, $b, $se);
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     echo "i am a SUV";
 }
Example #3
0
 public function __construct($price, $maxSpeed, $color)
 {
     parent::__construct($price, $maxSpeed, $color);
     $this->passangers = array();
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     echo '12334';
 }
Example #5
0
 public function __construct($price, $maxSpeed, $color)
 {
     parent::__construct($price, $maxSpeed, $color);
     $tax = $color == "red" ? $this->price * (self::TAX + 0.1) : $this->price * self::TAX;
     $this->price = $this->price + $tax;
 }
Example #6
0
 function __construct($color = "", $mfg = "", $model = "", $type = "", $cc = 3500, $price = 155555555)
 {
     parent::__construct($color, $mfg, $model, $type, $cc);
     $this->price = $price;
     $this->cc = $cc;
 }