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); }
public function __construct() { parent::__construct(); echo "i am a SUV"; }
public function __construct($price, $maxSpeed, $color) { parent::__construct($price, $maxSpeed, $color); $this->passangers = array(); }
public function __construct() { parent::__construct(); echo '12334'; }
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; }
function __construct($color = "", $mfg = "", $model = "", $type = "", $cc = 3500, $price = 155555555) { parent::__construct($color, $mfg, $model, $type, $cc); $this->price = $price; $this->cc = $cc; }