質問編集履歴

4

ソースコードでサブクラス定義時にスーパークラスを継承することを宣言し忘れていた点を修正しました。全てのサブクラスは extends Shape することを前提とした質問のつもりでした。

2018/06/15 13:51

投稿

KIYZ
KIYZ

スコア17

test CHANGED
File without changes
test CHANGED
@@ -44,7 +44,7 @@
44
44
 
45
45
 
46
46
 
47
- class Square {
47
+ class Square extends Shape {
48
48
 
49
49
  protected $length = 4;
50
50
 
@@ -64,7 +64,7 @@
64
64
 
65
65
 
66
66
 
67
- class Triangle {
67
+ class Triangle extends Shape {
68
68
 
69
69
  protected $base = 4;
70
70
 
@@ -86,7 +86,7 @@
86
86
 
87
87
 
88
88
 
89
- class Circle {
89
+ class Circle extends Shape {
90
90
 
91
91
  protected $radius = 5;
92
92
 

3

タグの追加

2018/06/15 13:51

投稿

KIYZ
KIYZ

スコア17

test CHANGED
File without changes
test CHANGED
File without changes

2

タグの消去

2018/06/15 13:09

投稿

KIYZ
KIYZ

スコア17

test CHANGED
File without changes
test CHANGED
File without changes

1

タグの変更

2018/06/15 13:08

投稿

KIYZ
KIYZ

スコア17

test CHANGED
File without changes
test CHANGED
File without changes