Jatin Dhingra wrote:@Rob:
I will surely take care of putting code tags in future !!
when you say field, does it mean instance variables?
Reference variable "obj" which is defined as sup type, then holds reference to this object. so shudnt it give output as x:3 ?
Jatin Dhingra wrote:I m new to javaranch and didnt actually understood putting code tags on programs