Dog dog1=new Dog(); dog1.name = " Max "; Dog dog2= new Dog(); dog2.name="Bella"; Dog dog3= new Dog(); dog3.name=" Jack";