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