実験課題3

Exercise 3(課題3) See the section 4.3.1. "Data Abstraction and Encapsulation". Show the modified source code of Figure 12 and its execution result as a screenshot. Follow instructions below to run the program.

  1. create the Java application project named chapter4kadai3.
  2. create main method to run the program.
  3. take the screenshot of the execution result.

(4.3.1.節をよく読み、プロジェクトchapter4kadai3を作成し、図12に示すプログラムを作成し、課題1の実行結果と同じものになるようにmainメソッドを変更し、ソースコードとスクリーンショットを報告しなさい。)