Skip to content

Commit ea5fb85

Browse files
authored
Update README.md
1 parent 3a6df23 commit ea5fb85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44

55
# Part 1.1 - Create `Person` Class
66
* Create a `Person` class.
7-
* `Person` constructor should have a parameter of type `String` which sets the `name` instance-variable to the respective value.
87
* The class should declare a `final` field named `id` of type `long`.
8+
* `Person` constructor should have a parameter of type `long` which sets the `id` field to the respective value.
99
* The class should define a `getId()` method which returns the `Person` object's `id` field.
1010
* The class should define a `getName()` method which returns the `Person` object's `name` field.
1111
* The class should define a `setName()` method which sets the `Person` object's `name` field.
1212

1313
-
1414
# Part 1.0 - Test `Person`
1515
* Create a `TestPerson` class.
16+
* Create a `testConstructor` method which ensures that a `Person` object's `id` field is being set upon construction.
1617
* Create a `testSetName` method which ensures that a `Person` object's `name` variable is being set by invoking the `.setName` method.
1718
* Create a `testConstructor` method which ensures that a `Person` object's `name` variable is being set by invoking the `Person` constructor.
1819

0 commit comments

Comments
 (0)