27 lines
608 B
Java
27 lines
608 B
Java
/*
|
|
* Author: CHEN Yongyuan (Walter) 1930006025 from OOP(1007)
|
|
* Date: 2022-04-11
|
|
* Description: Lapin Saute Chasseur
|
|
*/
|
|
|
|
public class LapinSauteChasseur extends EuropeanRabbit {
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* With name "Delicious" and has a weight of 0.5
|
|
*/
|
|
public LapinSauteChasseur() {
|
|
super("Delicious", 0.5);
|
|
}
|
|
|
|
/**
|
|
* Test.
|
|
*/
|
|
public static void testLapinSauteChasseur() {
|
|
LapinSauteChasseur rabbit = new LapinSauteChasseur();
|
|
System.out.println(rabbit.getName() == "Delicious");
|
|
System.out.println(rabbit.getWeight() == 0.5);
|
|
System.out.println(rabbit.isCookable() == true);
|
|
}
|
|
}
|