Biblioteca Java - Rev 38
Subversion Repositories:
public class Telefon {
int pb;
Telefon(){
pb = 100;
}
Telefon(int pb){
this.pb = pb;
}
void afiseaza(){
System.out.println("Telefon baterie "+pb+"%");
}
public static void main(String[] args) {
Telefon t1 = new Telefon();
t1.afiseaza();
/* Telefon t2 = new Telefon();
t2.afiseaza();
Telefon t3 = new Telefon(15);
t3.afiseaza();*/
}
}