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 shevin Cancel reply1

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

one × 4 =