Basically, both function and method are same.Function in object oriented programming is known as Method
Function in object oriented programming is known as Method