java: dispatch for static methods
Nov. 15th, 2008 09:04 amSay we have
(I wonder if you know what I mean).
class A; class B extends A; A a = new A(); B b = new B(); B c = a; and we want to call the right static method on c: no way. But we could simulate it using reflection, right? Take c, get its class, which is B, find its static method, by name, and call it.(I wonder if you know what I mean).
