Exemplo n.º 1
0
 public function __construct($name, $surname, $age, $salary, $gender = self::GENDER_MALE)
 {
     parent::__construct($name, $surname, $age, $gender);
     $this->salary = $salary;
 }
Exemplo n.º 2
0
 public function __construct($name, $surname, $age, $gender, $salary, $commision)
 {
     parent::__construct($name, $surname, $age, $gender);
     $this->setSalary($salary);
     $this->setCommision($commision);
 }