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.
Type: Posts; User: CheukKwan
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.
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 {
}