Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1037 :

Posted: Thu May 01, 2014 6:02 pm
by kilo1981
Is it possible to cast b.methodB() in any way so that this will compile? Thanks!

Re: About Question enthuware.ocajp.i.v7.2.1037 :

Posted: Thu May 01, 2014 8:23 pm
by admin
Yes, you need to cast b to Sub to achieve that:

Code: Select all

((Sub)b).methodB();