Commit 8dc18fdf authored by Iago Gómez Salgado's avatar Iago Gómez Salgado

Set id in constructor

parent 32282ae3
...@@ -11,6 +11,7 @@ public class Pet { ...@@ -11,6 +11,7 @@ public class Pet {
Pet(){} Pet(){}
public Pet(int id, String name, String kind, String breed, int owner) { public Pet(int id, String name, String kind, String breed, int owner) {
this.setId(id);
this.setName(name); this.setName(name);
this.setKind(kind); this.setKind(kind);
this.setBreed(breed); this.setBreed(breed);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment