Search:

Type: Posts; User: CheukKwan

Search: Search took 0.08 seconds.

  1. Replies
    5
    Views
    905

    Re: About casting

    I have read up the concept of what you said. However, I want to know if 'a' can reference a J_SubClass or not. And why ? That's the key.
  2. Replies
    5
    Views
    905

    About casting

    Why can my code be compiled ? And why can't J_SuperClass be cast to J_SubClass ?:confused:
    2393
    The following is my code:


    class J_SuperClass {
    }

    class J_SubClass extends J_SuperClass {
    }
Results 1 to 2 of 2