Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

Is Color a class or an object?

+6 votes
One of the questions on the practice midterm asks:  

If we write Color c = new Color(0,0,255); then c is an instance of the Color __________

and lists possible answers as method, instance, class, object, constant, or static.
asked Oct 8, 2017 in CSC 211 (F17) by Lauren Endress (100 points)
Color is the class. C is the object. Good luck on the test! :)

2 Answers

+5 votes
Color is the class. C is the object. Good luck on the test! :)
answered Oct 9, 2017 by Keri Meinert (100 points)
0 votes
I believe the answer would be class, because although c itself is an object, it would be part of the Color class. This also applies to console being an instance of the Scanner class.
answered Oct 9, 2017 by Evan St. Paul (100 points)
...