•[protection][linkage][resulttype] name]) ([parameter declarations]) {[declarations]instructions}
•protection
:
–public : method can be called from anywhere
•linkage
:
–static : method does not apply to a specific object
instantiation
•resulttype
:
–void : no value is returned by this method
–(in Java, C and C++ all procedures
are functions ! )
•name
:
–main : this method will always be executed first