In reply to dave_59:
could you please explain how being a static variable, int i is getting same value for all the three instances.
In reply to dave_59:
could you please explain how being a static variable, int i is getting same value for all the three instances.