You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
203 B
Java
11 lines
203 B
Java
3 years ago
|
package com.company.lampe;
|
||
|
|
||
|
public class LEDBulb extends Lamp{
|
||
|
public LEDBulb(){
|
||
|
this.Watt = 9;
|
||
|
}
|
||
|
public int power(int hourPerDay){
|
||
|
return PowerConsuption(this.Watt);
|
||
|
}
|
||
|
}
|