Draw glasses on a picture of a person who doesn't normally wear glasses.
What will be an ideal response?
```
public static Picture drawGlassesOnBarb ( )
{
Picture p = new Picture (
FileChooser . getMediaPath ( " barbara . jpg " ) ) ;
Graphics g = p . getGraphics ( ) ;
g . setColor ( Color .BLACK) ;
// draw glasses
g . drawOval ( 84 , 109 , 25 , 16 ) ;
g . drawOval ( 139 , 104 , 25 , 16 ) ;
g . drawLine ( 109 , 117 , 139 , 112 ) ;
g . drawLine ( 84 , 119 , 65 , 119 ) ;
g . drawLine ( 164 , 111 , 173 , 107 ) ;
return p ;
}
```
You might also like to view...
Write the code that defines an enumerated type car whose enumerators are ford, toyota, honda and an array vehicle whose ten elements are of data type car.
What will be an ideal response?
Each class you create becomes a new ________ that can be used to declare variables and create objects.
a. package b. instance c. library d. type.