Skip to content

Commit

Permalink
OK
Browse files Browse the repository at this point in the history
  • Loading branch information
Eloi0424 committed Nov 25, 2023
1 parent e81887e commit 767974f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/bytelegend/Home.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ public static void main(String[] args) {
// Updates the `name` instance field (aka. member variable) of that object to `name` argument of
// the method.
// Returns that object.
public static Cat newCat(String name) {}
public static Cat newCat(String name) {
Cat cat = new Cat();
cat.name = name;
return cat;
}
}

0 comments on commit 767974f

Please sign in to comment.