2024-10-07 10:37:10 +02:00

14 lines
292 B
Java

package lab2_factory_method.ex2;
public class WoodHouse extends House {
@Override
public void buildHouse() {
System.out.println("Building a wooden house");
}
@Override
public void calculatePrice() {
System.out.println("Mid range wooden chalet");
}
}