Santosh Bobade wrote:
Please find the below code and tell me why everytime I! gets printed as output?
Because an I3 instance IS-A I1 instance. An I3 instance also IS-A I2 instance, but you don't print I2 if it is an I2 instance. Perhaps
you should change your code to two separate if statements, to see it better.
Henry