SCJP 6
All code in my posts, unless a source is explicitly mentioned, is my own.
Regards
Sunny Mattas
SCJP5
When it's obvious that you have to do it, just do it without shattering your thoughts over different directions.
SCJP 6
- Whereas if I have a cast, I have to check the cast type with the reference first, to assert that it compiles:
B b1 = (B)a; // the (B) on the richt is-a B of the left side, so it compiles, but at runtime, the object type must be checked:
When it's obvious that you have to do it, just do it without shattering your thoughts over different directions.
Ruben Soto wrote:
When you bind an object to a reference, you need to make sure that the reference can point to that object according to the referencing rule I wrote above. That's all there is to it.
Vishal Gupta<br />------------<br />SCJA
SCJP 6
My cellmate was this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|