Which of the following classes have a paint( ) method? (Select Multiple)

A) Canvas
B) Image
C) Frame
D) Graphics

Showing Answers 1 - 5 of 5 Answers

 

Actually Canvas is base class that has a paint() method to   paint  on component,may be on applets,frames.

It can be for the Graphics.Applets use paint() method to print on it,because it has no main method. Paint() method is simple method useful for drawing the images ,lines,shapes.

 

Thank You.

Sandeep Kutwal.

Dishnet Wireless Limited.

 

  Was this answer useful?  Yes

pallavr

  • Jun 30th, 2006
 

A) Only Canvass class has the paint method.

Any class which will extend the componet class will have the paint method inherited into it.

  Was this answer useful?  Yes

vipula

  • May 25th, 2020
 

canvas,framw

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions