![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
In fact, this kind of assignment A a = new B() ; happens only in method argument passing where your method expects an object of class A and you pass it an object of its descendatant class, else we never need such kind of assigment when we already know we can use B b = new B() ; It was just his query and I tried to explain him the outcome. This also happens frequently in reading and writing data on network like Thanx
Replies:
|
Sponsored Links
|