public class Plant{
int height;
int value;
String type;
public Plant(){
height = 0;
type = "Generic Plant";
}
public Plant(int h){
height = h;
type = "Generic Plant";
}
public void Grow(){
height = height + 10;
value = value + 100;
}
public void Grow(int h){
height = height + h;
value = value + 100 * h;
}
public int getValue(){
return value;
}
public int getHeight(){
return height;
}
public String getType(){
return type;
}
}
para sa mga nakalimot o di nkapagsave sa mga USB (tulad ko kaya kailangan ko tuloy isipin kung anu nga ung program)
October 22, 2009 at 6:50 AM
i posted it :D
Post a Comment
Hi. :-h