The document defines a Java class that draws a truck using basic shapes like rectangles, ellipses and lines. The class overrides the paint method to draw the truck body as two rectangles, the wheels as ellipses and the base as a line. Text is also drawn on the truck bed.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
11 views
Cod in Java
The document defines a Java class that draws a truck using basic shapes like rectangles, ellipses and lines. The class overrides the paint method to draw the truck body as two rectangles, the wheels as ellipses and the base as a line. Text is also drawn on the truck bed.