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?
'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?