Commit 935020db authored by Egita Udodova's avatar Egita Udodova
Browse files

Upload New File

parent 0df7be48
public class Kangaroo extends Animal{
public Kangaroo() {
super();
// TODO Auto-generated constructor stub
}
public Kangaroo(String name, String color, int weight) {
super(name, color, weight);
// TODO Auto-generated constructor stub
}
@Override
public void move() {
System.out.println("Jump");
}
@Override
public void speak() {
System.out.println("Kangaroo is throwing fists");
}
public void fight() {
System.out.println("rururururu");
}
public String display() {
return "Kangaroo is looking majestatic";
}
}
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