예제 #1
0
 function __construct($title, $firstName, $mainName, $price, $playLength)
 {
     parent::__construct($title, $firstName, $mainName, $price);
     $this->playLength = $playLength;
 }
예제 #2
0
 function __construct($title, $firstName, $mainName, $price, $numPages)
 {
     parent::__construct($title, $firstName, $mainName, $price);
     $this->numPages = $numPages;
 }
예제 #3
0
파일: index.php 프로젝트: vosaan/php
 public function __construct($title, $producer, $price, $pageCount)
 {
     parent::__construct($title, $producer, $price);
     $this->pageCount = $pageCount;
 }
예제 #4
0
파일: index4.php 프로젝트: Overfinch/oop
 public function __construct($title, $price, $type, $size)
 {
     parent::__construct($title, $price);
     $this->type = $type;
     $this->size = $size;
 }
예제 #5
0
파일: ext.php 프로젝트: pers1307/levelUpPHP
 function __construct($title, $firstName, $mainName, $price, $playLength)
 {
     parent::__construct($title, $firstName, $mainName, $price);
     // Так можно вызвать методы родителя
     $this->playLength = $playLength;
 }