"The man who can drive himself further once the effort gets painful is the man who will win." <br />Roger Bannister
Originally posted by Vishy Karl:
I don't understand why "because a Cat is not a Dog.". I think as Cat extends Dog so it Cat is a Dog. Hence e should not be the correct answer. How is e correct instead of d ??
- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
Originally posted by Vad Fogel:
I see where Vishy's coming from. What makes answer e correct is only a matter of pure semantics. Change Dog to be SuperGadget and Cat to be SubGadget (you're free to come up with more meaningless names), and you receive option f. Technically speaking, I don't see anything wrong with a Cat object being a Dog (you never know these days :roll: ). The real exam will probably not unleash your philosophical ability to judge rather obfuscated concepts like that.
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
"The man who can drive himself further once the effort gets painful is the man who will win." <br />Roger Bannister
There were millions of the little blood suckers. But thanks to this tiny ad, I wasn't bitten once.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|