Need help with this Java question in 1 hourplease
JAVA
Using the files from the in-class assignment add two additionalanimals of your choice. For each animal add two additional methodsappropriate to your particular animal.
As the majority of the code for this program exists you will notneed an algorithm. Use the 3 java classes below. Thank you
//Animal.java
public class Animal {
public Animal() {
System.out.println(“A new animal has beencreated!”);
}
public void sleep() {
System.out.println(“An animal sleeps…”);
}
public void eat() {
System.out.println(“An animal eats…”);
}
}
//Cat.java
public class Cat extends Animal {
public Cat() {
super();
System.out.println(“A new cat has beencreated!”);
}
@Override
PayPal Gateway not configured
PayPal Gateway not configured