Skip to content

Commit e8dbab8

Browse files
authored
図形クラスの問題文を解答例に合うように変えました (#760)
1 parent 9d1898f commit e8dbab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/2-browser-apps/03-class/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,9 @@ currentTime.textContent = getCurrentTime();
425425

426426
### 図形クラス
427427

428-
色を表す `color` プロパティと、面積を求める `calculateArea` メソッドを持つ `Shape` クラスを実装してみましょう。
428+
色を表す `color` プロパティを持つ `Shape` クラスを実装してみましょう。
429429

430-
そして、`Shape` クラスを継承する `Rectangle` (長方形) クラス、`Square` (正方形) クラス、`Circle` (円) クラスを実装してみましょう。
430+
そして、`Shape` クラスを継承し、面積を求める `calculateArea` メソッドを持つような、`Rectangle` (長方形) クラス、`Square` (正方形) クラス、`Circle` (円) クラスを実装してみましょう。また、この 3 つのクラスの間のどこで継承関係を作ればいいか考えてみましょう
431431

432432
<Answer title="図形クラス">
433433

0 commit comments

Comments
 (0)