コード例 #1
0
ファイル: lesson1_11.php プロジェクト: vrach141801/Study
 function __construct($title, $firstName, $mainName, $price, $playLength)
 {
     parent::__construct($title, $firstName, $mainName, $price);
     $this->playLength = $playLength;
 }
コード例 #2
0
ファイル: listing.023.php プロジェクト: jabouzi/projet
 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;
 }