subject
Computers and Technology, 23.02.2021 02:20 debry

Paige is creating a game with an underwater scene. She has created a class for fish objects. She wants to add several fish in a variety of sizes, colors and shapes. She creates the following two fish using the fish class definition. FISH A
Size : Large
Color: Pink
Shape: Oval

FISH B
Size: Small
Color: Blue
Eyes: Large
There is an error in the fish class definition. Which statement correctly explains the error?
a

Objects created using the same class must have the same properties and values.
B

Objects created using the same class must have the same properties.
C

Only one object or instance can be created using a class definition.
D

Only objects with the Type property value can be created using a class definition.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:00, mariahrpoulin9630
Which part of the cpu accepts data?
Answers: 1
image
Computers and Technology, 22.06.2019 17:30, uh8hardiek
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
image
Computers and Technology, 22.06.2019 19:20, sindy35111
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
image
Computers and Technology, 22.06.2019 22:00, lgary9462
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass. cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array. c . run this program and observe the results.
Answers: 1
You know the right answer?
Paige is creating a game with an underwater scene. She has created a class for fish objects. She wan...

Questions in other subjects:

Konu
Mathematics, 18.10.2020 15:01
Konu
Mathematics, 18.10.2020 15:01
Konu
Computers and Technology, 18.10.2020 15:01