Java, C#, PHP, Flash & C++ get and set methods code auto generator
Autogenerate get and set functions for Java, C#, C++,Flash and PHP classes to match instance class variables
How many times have you written a class with private instance variables and then spent ages
writing the corresponding get and set methods?
This page will help you save time and effort writing well formed object oriented classes.
Simply paste in language code containing your private instance variables and the server will respond with
matching get and set functions.
Note: We do not keep ANY submitted code. It is immediatly discarded and only viewed by you.
However, if you still feel reluctant to submit code, only submit the class variables - that works equally well as just pasting the whole thing.
Example for Java:
private int num_users;
becomes:
//-------------QUERIES-------------
public int getNum_users() {
return this.num_users;
}
//-------------COMMANDS------------
public void setNum_users(int num_users) {
this.num_users = num_users;
}
Other instance formats
PHP
private $num_users;
Flash
private var _email:String;
C#
Same as Java...
C++
private:
std::string _m_Str;
std::vector _m_Vec;
float _m_Float;
int _m_Int;
Remember the instance variable prefix for C++ and Flash Thx to
cpjust for pointing out the ‹int› part and double colons in C++
Copyright © 2007 houen.net contact us
Use this software at your own risk. houen.net and its affiliates are not responsible for any loss which occurs, directly or indirectly, through the use of this software.