public interface Animal {
void shout();
}
public class Dog implements Animal {
public void shout() {
System.out.println("W W!");
}
}
public class Cat implements Animal {
public void shout() {
System.out.println("M M!");
}
public interface Animal {
void shout();
}
public class Dog implements Animal {
public void shout() {
System.out.println("W W!");
}
}
public class Cat implements Animal {
public void shout() {
System.out.println("M M!");
}