What are methods?
Methods are the building blocks of a class, in which they are linked together to share and process data to produce the result. In other words, a method is a block of code that has a series of statements and shows the behavior of a class. While declaring a method you require specifying the access specifier, the return value, the name of the method, and the method parameters. All these combined together is known as the signature of the method.