Computer Science, asked by rewaasrour2000, 4 months ago

Examine the following codes and draw the class diagram.
abstract public class Animal { abstract public void greeting();

}

public class Cat extends Animal {
@Override

public void greeting() {
System.out.println("Meow!");

public class Dog extends Animal {
@Override

public void greeting() {

System.out.println("woof!");

}

public void greeting(Dog another) {

System.out.printin("Woooooooooof!");
}
}

public class BigDog extends Dog {
@Override

public void greeting() {

System.out.println("woow!");

}

@Override

public void greeting(Dog another) {

System.out.println("woooooowwwww!");
}
}

Answers

Answered by Itzswaggurl
0

Answer:

hii ...frnds...gd eve .....plz follow Kanika ...I m following her u can follow her from there...plz I will follow him or her who follow kanika

Answered by gkhanaf
1

Answer:

Ask this at science forums.

Idk how to do this sorry.

Explanation:

Similar questions