Commit 0df7be48 authored by Egita Udodova's avatar Egita Udodova
Browse files

Upload New File

parent f548f4bd
public class Dolphin extends Animal {
public Dolphin() {
super();
}
public Dolphin(String name, String color, int weight) {
super(name, color, weight);
// TODO Auto-generated constructor stub
}
public void screem() {
System.out.println("eeeekeeee");
}
@Override
public void move() {
System.out.println("Dolphin is swimming");
}
@Override
public void speak() {
System.out.println("eeeek");
}
}
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