Thanks for the extra info ignace, I had guessed self was referencing the current class some how but I'm curious what it is actually doing.. "granted I know this syntax is wrong" but I imagine its something like this:
function add(new thisClass($b))
Is that an accurate depiction of what is happening? Btw I didn't end up using the keyword since I wasn't sure what it was doing and I wanted to include more parameters.
I am curious as to how one might go about overloading the Arithmetic Operators for a class.
I have a class in which I find myself in need of doing this. Any ideas? Thanks.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.