You need to add your object as the first parameter if the function is a method, because methods expect this.
It's not a method if you call it that way.
In reply to Re^2: Can we call a Child Class Member functions using Parent Class Object
by chromatic
in thread Can we call a Child Class Member functions using Parent Class Object
by sugarboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |