This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
dynamic binding
Posted by Jigesh Mody on January 21, 2002 at 5:29 AM
> hey I wish you could explain this When you compile a piece of code, the compiler starts formatting your source code into byte code by allocating memmory addresses to variables you have declared, for ex: int x will be given 4 bytes. But when it comes to user defined data types, like object of type Person which could be referenced to employee, for ex: Person james = new Manager(); the compiler does not keep aside a fixed memmory space for james because it does not know if james would be used as a Person object, Manager object or maybe even a Director object. So when you run the program, the JVM will allocate the appropriate memmory space and thus provide late binding.
Replies:
|