What's the difference between a method and a function in oop ?
Asked
Active
Viewed 35 times
-3
-
1A method is a function that is part of a class. It gets called through an object, as in `obj.method()`, as opposed to a non-method function, which is called `func(a,b,c)`. – Tim Roberts Apr 16 '23 at 06:23