 See also

Like in C and C++ there are functions that group reusable code.The main difference is that functions, just like in Java, have to reside inside of a class.A function is therefore called a "method".