void function ( Graphics2D arg0 ) { arg0 . drawString ( "srini_string" , 20 , 20 ) ; Dog loc0 = new Dog ( 100 , 50 , 225 , 225 ) ; partyDog loc1 = new partyDog ( 20 , 50 , 30 , 30 ) ; arg0 . setColor ( Color . RED ) ; arg0 . draw ( loc0 ) ; arg0 . setColor ( Color . GREEN ) ; arg0 . draw ( loc1 ) ; }
draw a different picture with dogs concode_field_sep PlaceHolder placeHolder concode_field_sep void drawPicture1 concode_elem_sep void drawPicture2