Skip to content
Snippets Groups Projects
Commit cdacb3fd authored by Mathea Berg Vindsetmo's avatar Mathea Berg Vindsetmo
Browse files

Dog

parent 4c5b9591
No related branches found
No related tags found
No related merge requests found
package of5_2.kode;
public class Dog implements Animal {
private int age;
private String name;
public Dog(String name, int age) {
this.name = name;
this.age = age;
}
@Override
public String getName() {
return name;
}
@Override
public int getAge() {
return age;
}
@Override
public String makeSound() {
return name + " sier bjeff!";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment