You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
333 B
12 lines
333 B
package com.company.lampe;
|
|
|
|
public class main {
|
|
public static void main(String[] args){
|
|
LEDBulb led = new LEDBulb();
|
|
Bulb bulb = new Bulb();
|
|
|
|
System.out.println("The LED lamp consumes "+led.power(5)+" kWh per hour");
|
|
System.out.println("The lamp consumes "+bulb.power(5)+" kWh per hour");
|
|
}
|
|
}
|