About Question enthuware.ocajp.i.v7.2.1037 :
Moderator: admin
-
- Posts: 3
- Joined: Wed Apr 30, 2014 3:12 pm
- Contact:
About Question enthuware.ocajp.i.v7.2.1037 :
Is it possible to cast b.methodB() in any way so that this will compile? Thanks!
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1037 :
Yes, you need to cast b to Sub to achieve that:
Code: Select all
((Sub)b).methodB();
Who is online
Users browsing this forum: No registered users and 6 guests