function __construct($title, $firstName, $mainName, $price, $playLength) { parent::__construct($title, $firstName, $mainName, $price); $this->playLength = $playLength; }
function __construct($title, $firstName, $mainName, $price, $numPages) { parent::__construct($title, $firstName, $mainName, $price); $this->numPages = $numPages; }
public function __construct($title, $producer, $price, $pageCount) { parent::__construct($title, $producer, $price); $this->pageCount = $pageCount; }
public function __construct($title, $price, $type, $size) { parent::__construct($title, $price); $this->type = $type; $this->size = $size; }
function __construct($title, $firstName, $mainName, $price, $playLength) { parent::__construct($title, $firstName, $mainName, $price); // Так можно вызвать методы родителя $this->playLength = $playLength; }