Solved

Which of the Following Is One Way to Get a Reference

Question 40

Multiple Choice

Which of the following is one way to get a reference to the Graphics object for an AWT component or a class that extends JApplet or JFrame?


A) Override the component's paint method.
B) Create a static instance of the Graphics object.
C) Pass an instance of the Graphics object as an argument to the component's constructor.
D) Create an instance of any class that extends the Graphics2D class.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions