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.
15 lines
239 B
Java
15 lines
239 B
Java
3 years ago
|
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;
|
||
|
}
|
||
|
}
|