-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
23 lines (19 loc) · 814 Bytes
/
index.php
File metadata and controls
23 lines (19 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
require_once 'autoload.php';
use App\Car\MyCarNomal;
use App\Car\MyCarSports;
use App\Car\MyCarLuxury;
$normal = new MyCarNomal();
echo "タイプ:" . $normal->type() . "<br>";
echo "エンジン:" . $normal->engine() . "<br>";
echo "アクセル:" . $normal->accelerator() . "<br><br>";
$sports = new MyCarSports();
echo "タイプ:" . $sports->type() . "<br>";
echo "エンジン:" . $sports->engine() . "<br>";
echo "アクセル:" . $sports->accelerator() . "<br>";
echo "独自装備:" . $sports->wing() . "<br><br>";
$luxury = new MyCarLuxury();
echo "タイプ:" . $luxury->type() . "<br>";
echo "エンジン:" . $luxury->engine() . "<br>";
echo "アクセル:" . $luxury->accelerator() . "<br>";
echo "独自装備:" . $luxury->sunroof() . "<br><br>";