A method works for the object from which is named after . A method can have one function to create its action, or several functions to create a complete solution. So in a way, methods and functions are not the same thing since a method can have one or more functions.
Why do we need methods?
A method works for the object from which is named after . A method can have one function to create its action, or several functions to create a complete solution. So in a way, methods and functions are not the same thing since a method can have one or more functions.