It is working as expected, means whatever you have written it is working fine because you have created two objects shape1 and circle1, which is not related to each other, so you cant expect to get...