Polymorphism

jibs parap

Ranch Hand

Posts: 134

posted 10 years ago

In K&B's book, under the polymorphism topic, it says : 'at runtime, the ONLY things that are dynamically selected based on the actual object (rather than the reference type) are instance methods. Not variables'

I think and prove that instance variables are also dynamically selected.

Originally posted by j . thexyz: In K&B's book, under the polymorphism topic, it says : 'at runtime, the ONLY things that are dynamically selected based on the actual object (rather than the reference type) are instance methods. Not variables'

I think and prove that instance variables are also dynamically selected.

Am I right?

Hi J.

Are you asking about anything then it would be great if you would have been give some example.

So if you are going to prove something then , Please let all of us know what you want to prove and how???

The Best way to predict your future is to create it - Every great individual common man