セクション 5. 章 6
single
Challenge: Updating User Information
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Your task is to update the fields of the existing person object using setters and getters. Change the name to Bob and set the age to 27.
-
Implement the
getName()andgetAge()methods, as well as thesetName()andsetAge()methods with the appropriate parameters and types. -
Update the name and age using the
setName()andsetAge()methods. -
Print the object with the updated fields to the console.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 5. 章 6
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください