Which statement will print the capital attribute of the $kansas object?

Which statement will print the capital attribute of the $kansas object?

Which statement will print the capital attribute of the $kansas object?

A.
print (“capital”=>$kansas);

B.
print {$kansas}=>(capital);

C.
print (capital)<={$kansas};

D.
print $kansas->{“capital”};



Leave a Reply 1

Your email address will not be published. Required fields are marked *