Originally posted by Sandeep Lodhia:
What do u mean by 'high quality' ???
EJb O'reilly Publication is available online at :
http://phatdaddy.dyns.net:8080/Oreilly/Java2/ebeans/index.htm
<code><pre>
class Pet {}
class Dog extends Pet {}
class Cat extends Pet {}
public class ExtendsTest{
public static void main(String args[])
{
Pet generic = new Pet();
Dog fido = new Dog();
Cat felix = new Cat();
// insert statement here
}
}
(a) generic=fido;
(b) felix=generic;
(c) fido=(Dog)generic;
(d) felix=(Cat)fido;
(e) fido=(Pet)fido;
</pre></code>
QUOTE]
Hi Jim,
Thanks for your explanation. Concrete example does make things a lot easier to understand.
Roger