2. Write a document what is public; what is static, what is void and main.
1
Expert's answer
2012-03-16T09:26:35-0400
"public" - this is type of access that allows to use outside of class. "static" is needed to ensure that this element is used, and all objects inherited base classwithout defining this element every time.
type "void" is written in the case when the function returns no results.
"main" - is the main method in which the test is usually the work of other methods and classes.
Comments
Leave a comment