Ejemplo n.º 1
0
 function __construct($title, $firstName, $mainName, $price, $playLength)
 {
     parent::__construct($title, $firstName, $mainName, $price);
     $this->playLength = $playLength;
 }
Ejemplo n.º 2
0
 function __construct($title, $firstName, $mainName, $price, $numPages)
 {
     parent::__construct($title, $firstName, $mainName, $price);
     $this->numPages = $numPages;
 }
Ejemplo n.º 3
0
Archivo: index.php Proyecto: vosaan/php
 public function __construct($title, $producer, $price, $pageCount)
 {
     parent::__construct($title, $producer, $price);
     $this->pageCount = $pageCount;
 }
Ejemplo n.º 4
0
 public function __construct($title, $price, $type, $size)
 {
     parent::__construct($title, $price);
     $this->type = $type;
     $this->size = $size;
 }
Ejemplo n.º 5
0
 function __construct($title, $firstName, $mainName, $price, $playLength)
 {
     parent::__construct($title, $firstName, $mainName, $price);
     // Так можно вызвать методы родителя
     $this->playLength = $playLength;
 }