2024年5月7日解決済み

MathScore、EnglishScore に科目名を渡さないのはなぜですか?

ユーザー

新しいクラス class MathScore extends Scoreclass EnglishScore extends Score を設定した時に、
new Score('Math', 70);new Score('English', 80);new MathScore(70)new EnglishScore(80) にしたところなのですが、
MathEnglish をなくした理由がよくわかりませんでした。

ここを詳しく教えていただきたいです。

スタッフ

この回答を見るにはプレミアムプランへの登録が必要です

プレミアムプランとは?