Ack, crossposting, not cool.
Type: Posts; User: KevinWorkman
Ack, crossposting, not cool.
Wow, nice. You weren't lying about the ugliness though- that's assuming that the grandparent class's "print" method doesn't involve other methods that the grandchild class overrode (probably not from...
I've been trying to figure out how to do this with reflection, to no avail! Reflection doesn't exactly fit into my brain though, so that's probably my ignorance showing.
I tried this:
...
Well, let me know what you come up with. I don't see an obvious way, other than adding methods in the parent class that can call methods in the grandparent class.
I'm not convinced you can, and I'm not convinced you should. Like I said, it's more likely a symptom of a bad design.
Why do you think you need to do this? Sounds like a symptom of bad design to me.