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.
|
package com.company.lampe;
|
|
|
|
public class Lamp {
|
|
|
|
protected int Watt;
|
|
public int PowerConsuption(int hoursPerDay){
|
|
|
|
return (this.Watt*hoursPerDay*365)/1000;
|
|
}
|
|
public int getWatt(){
|
|
|
|
return this.Watt;
|
|
}
|
|
}
|