Skip to content

Commit

Permalink
Revert "Update Cat.java (#175)"
Browse files Browse the repository at this point in the history
This reverts 08e6d16.
  • Loading branch information
ByteLegendBot committed Nov 23, 2023
1 parent 08e6d16 commit db83bf0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/java/com/bytelegend/Cat.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ public class Cat {
public String name;

public Cat(String name) {
this.name = name;
}

public Cat() {
this("");
name = name;
}

@Override
public String toString() {
return "Cat(" + this.name + ")";
return "Cat(" + name + ")";
}
}

0 comments on commit db83bf0

Please sign in to comment.