Question:Why can't a Graphics object be created using the following statement? Graphics g = new Graphics(); 

A The Graphics class is a final class. 

B The Graphics class is an abstract class. 

C The constructor of the Graphic class needs a color object to be passed as a parameter, e.g Graphics g = new Graphics(new Color());. 

+ Answer
+ Report
Total Preview: 609

Copyright © 2024. Powered by Intellect Software Ltd