Difference Between Method and Function? in C#.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Thiruppathi RPosted Jun 28, 2016, 9:09 AM
DarilPosted Nov 15, 2021, 9:15 AM
Lucian PattersonPosted Jul 25, 2021, 4:06 PM
Method & Function are not the same
Vinay SinghPosted Jun 28, 2016, 4:36 AM
Method on the other had can be viewed as a function that acts on an Object. This object is an instance of a class (blueprint of that instance). Method will always have an implicit argument as a reference to self. For example in python you use self , or in Java you use this.
So to sum it up simplistically speaking "method" is object oriented word for function .
Rajeesh MenothPosted Jun 28, 2016, 4:00 AM