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 2

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