The Fission Theory: This theory proposes that the Moon was once part of the Earth and somehow separated from the Earth early in the history of the solar system.
This provides modular approach to programming. Classes. A class is a concept used in object oriented programming languages such as C++, PHP, and JAVA etc. Apart from holding data, a class is also used to hold functions. An object is an instant of a class. In case of variables, the type is the class whereas the variable is the object.
This article explains about method and it's structure in java. Definition of Method. A method is a set of program statements. It forms the fundamental unit of execution in java. Each method exists as part of a class. During an execution of a program, methods may invoke other methods in the same or a different class. No program code can exist outside a method, and no method can exist outside a class.