33 lines
645 B
Java
33 lines
645 B
Java
|
package lab6_template_method.ex1;
|
||
|
|
||
|
public class HellsKitchen extends Restaurant {
|
||
|
public HellsKitchen(String name) {
|
||
|
super("HK " + name);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void prepareVegetables() {
|
||
|
log("Preparing nice salad");
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void prepareMainMenu() {
|
||
|
log("Creating flavorful dish");
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void prepareCheese() {
|
||
|
log("Preparing finest cheese");
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void prepareDessert() {
|
||
|
log("Giving birth to awesome dessert");
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void prepareCoffee() {
|
||
|
log("Brewing the best coffee");
|
||
|
}
|
||
|
}
|