Commit f548f4bd authored by Egita Udodova's avatar Egita Udodova
Browse files

Upload New File

parent af43962c
public class Dog extends Animal {
public Dog() {
super();
}
public Dog(String name, String color, int weight) {
super(name, color, weight);
// TODO Auto-generated constructor stub
}
@Override
public void move() {
System.out.println("Dog is running");
}
@Override
public void speak() {
System.out.println("oof, woof!");
}
}
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