瀏覽代碼

Update README.md

Git-Leon 7 年之前
父節點
當前提交
832ce34574
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      README.md

+ 3
- 2
README.md 查看文件

@@ -6,8 +6,9 @@
6 6
 * Create a `Person` class.
7 7
 	* `Person` constructor should have a parameter of type `String` which sets the `name` instance-variable to the respective value.
8 8
 	* The class should declare a `final` field named `id` of type `long`.
9
-	* The class should define a `getName()` method which returns the `Person` object's `name` variable.
10
-	* The class should define a `setName()` method which sets the `Person` object's `name` variable.
9
+	* The class should define a `getId()` method which returns the `Person` object's `id` field.
10
+	* The class should define a `getName()` method which returns the `Person` object's `name` field.
11
+	* The class should define a `setName()` method which sets the `Person` object's `name` field.
11 12
 
12 13
 -
13 14
 # Part 1.0 - Test `Person`