wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes instance variables and run time polymorphism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "instance variables and run time polymorphism" Watch "instance variables and run time polymorphism" New topic
Author

instance variables and run time polymorphism

Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
if instance variable doesnt exhibit run time polymorphic behaviour like static variables even though they belong to an instance and not a class
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
What is the question?
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
no unlike overridden methods in inheritance,the redeclared variables wont be decided at runtime(for eg to a base class reference we assign a derived class instance the instance variable values will be that of base class),any specific advantage
 
Consider Paul's rocket mass heater.
 
subject: instance variables and run time polymorphism
 
Similar Threads
Inheritance Doubt
subclass
about SingleThreadModel?
Instance variable initialization
Overridding Pls Explain this code