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”;
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”;