I have created a site to ease the development of good object oriented code by automatically generating get and set functions
Simply paste in your instance variables and it will respond with get and set functions. It supports Java, C#, PHP, Flash and C++.
Java example:
insert
private int numusers
generates
//-------------QUERIES-------------
public int getNumusers() {
return this.numusers;
}
//-------------COMMANDS------------
public void setNumusers(int numusers) {
this.numusers = numusers;
}
Whether you want camelCase or under_score in the function name is up to you
Simply paste in your instance variables and it will respond with get and set functions. It supports Java, C#, PHP, Flash and C++.
Java example:
insert
private int numusers
generates
//-------------QUERIES-------------
public int getNumusers() {
return this.numusers;
}
//-------------COMMANDS------------
public void setNumusers(int numusers) {
this.numusers = numusers;
}
Whether you want camelCase or under_score in the function name is up to you