-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
図形クラスの問題文を解答例に合うように変えました #760
Conversation
Deploying utcode-learn with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
そして、`Shape` クラスを継承する `Rectangle` (長方形) クラス、`Square` (正方形) クラス、`Circle` (円) クラスを実装してみましょう。 | ||
そして、`Shape` クラスを継承し、面積を求める `calculateArea` メソッドを持つような、`Rectangle` (長方形) クラス、`Square` (正方形) クラス、`Circle` (円) クラスを実装してみましょう。また、コードが短くなるようにこの 3 つのクラスの間のどこで継承関係を作ればいいか考えてみましょう。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コードが短くなるように、だけが目的ではない気がするので、あえて「コードが短くなるように」と言わなくてもいいかも?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ですね。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これふつうに問題文間違ってましたね...(そういえば、これ授業直前にプルリクエストが来たやつだ...)
LGTM!
No description provided.