3 Replies Latest reply on May 28, 2010 4:23 PM by 3004

    java auto casting features?

      heys all, i was wondering if there are any auto cast features in java. (its something like the overriding widening cast operators in Vbnet)

      an example function that requires a Robot as a parameter:
      public void test(Robot arg1) {
      i have a class Human, no it does not extend directly or indirectly from Robot. however i would like to do this:
      Human h1 = new Human();
      // and the implicit conversion occurs in VB to transform human to a robot
      currently i had something like this (which is not what i want):
      Human h1 = new Human();