Which statement sets the name of the Hat instance?

View the Exhibit. Which statement sets the name of the Hat instance?

View the Exhibit. Which statement sets the name of the Hat instance?

A.
Hat.setName(“Cowboy Hat”);

B.
blackCowboyHat.setName(“Cowboy Hat”);

C.
setName(“Cowboy Hat”);

D.
blackCowboyHat.setName = “Cowboy Hat”;



Leave a Reply to mrZ Cancel reply2

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

eight − 1 =