A method is an identifiable, self-contained section of code that performs a specific task, such as calculating the square root of a number or resetting the text boxes on an interface. Methods have many uses and are a common way to add functionality to a program. Describe the two types of methods and provide examples of each of them along with describing their method type.
Justify your answers with examples and reasoning. Comment on the postings and views of at least two classmates to elaborate on their ideas or to offer a different perspective.