in reply to doubt in object oriented
In the first, you have a function call. In the second, you have a method call.
Method calls follow inheritance. Method calls pass the class or object on which the method was called as the first parameter.
Values are returned to the caller identically in both cases. Returned values are obtained by the caller identically in both cases.
|
|---|