Skip to content

Instantly share code, notes, and snippets.

@swarut
Created October 6, 2012 07:45
Show Gist options
  • Save swarut/3844342 to your computer and use it in GitHub Desktop.
Save swarut/3844342 to your computer and use it in GitHub Desktop.
xxxxxxxxx
class Human{
private String name;
private int age;
private String birth;
private int weigth;
private int height;
private String[] nisai;
private String status;
private float money;
private house home;
public Human(String n,String date,int w,int h,String job,house h)
{
name = n;
birth = date;
age = cal(age) // in date class may cal all human age every day
weigth = w
height = h
status = job
house = h
}
public void eat(){
}
public void givenisai()
{
input interface (1,2,3,4,5,.....)
bufferreader set in array nisai[]
}
public String do_activity(1,2,3,4,5,6)
{
compare activity with nisai to calculate result output;
ex study if have nisai lazy result =quite bad
}
public String event()
{
input interface 1,2,3,3,4,5.... to choose to cal in class event
cal with nisai job money age weight height to do_activity
ex, if event is fire status= student student cant fire notting happend
or status = teacher => status = null
}
public void setelement(String element)
{
change name weight height job status at here
}
public method return element
}
class House{
private int type;
private String address;
private int price;
private int status; (1-belonged , 2-doesnt belonged)
public House(int t,String add,int p){
type = t;
address = add;
price =p;
}
public boolean isSold()
{
if startus 1
cant sell
else
can sell
}
public void change-price()
{
}
class activity()
{
public string name
public string status;
public int price
public int[][] condition
public
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment