回答編集履歴

1

コードがあまりにも適当すぎた(継承すら書いてなかった)ので修正しました。

2016/10/21 03:37

投稿

ishi9
ishi9

スコア1294

test CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  {
30
30
 
31
- private:
31
+ protected:
32
32
 
33
33
  ClassType type;
34
34
 
@@ -40,7 +40,7 @@
40
40
 
41
41
 
42
42
 
43
- class Sphere
43
+ class Sphere : public Base
44
44
 
45
45
  {
46
46
 
@@ -63,3 +63,7 @@
63
63
  shpere.GetType(); // SPHERE
64
64
 
65
65
  ```
66
+
67
+
68
+
69
+ コードがあまりにも適当すぎた(継承すら書いてなかった)ので修正しました。