a java like classes libarary, write use C or C++