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 0

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