45.1k views
1 vote
A program defines a class Shape. The first line of code in the main program is Shape Triangle;. What is Triangle?

A: Module

B: Function

C: Object

 
D: Routine

I have been stuck on this question for a very long period of time, and my only answer, or the only thing I could think of would've been Module or Object. I think I may be confusing object with something else. If someone could help me, and describe it if i'm wrong; I would be very grateful. Thank you!! :))

2 Answers

3 votes
I'm not sure if I'm right or wrong but I'm pretty sure it has to be a module.
User Mirjam
by
5.4k points
4 votes

Answer:

I just did the test and got it right the answer is C. Object

Step-by-step explanation:

User Matt Kellogg
by
5.1k points