Every method has to be part of a Class. The difference between a main method (actually the main method which you are talking about) and any other method is that execution of the program starts at the main method . A method represents a functionality or a set of instructions that have been grouped together.
Read moreWhat is the difference between a main method and a method contained in a class?
Every method has to be part of a Class. The difference between a main method (actually the main method which you are talking about) and any other method is that execution of the program starts at the main method . A method represents a functionality or a set of instructions that have been grouped together.
Read moreWhat is the difference between class object and method?
an object is an element (or instance) of a class; objects have the behaviors of their class. The object is the actual component of programs, while the class specifies how instances are created and how they behave . method: a method is an action which an object is able to perform.
Read more