79191250

Date: 2024-11-15 06:13:09
Score: 1.5
Natty:
Report link

Exactly. You seem to be missing the opening '{' for the class .

/**
* Write a description of class Tia here.
*
* @author (your name)
* @version (a version number or a date)
*/

import objectdraw.*;
import java.awt.*;

public class AlexisSmile extends FrameWindowController 
{

    FilledOval head = new FilledOval (100,100,200, 200, canvas);
    FilledOval eyeR = new FilledOval (130, 130, 70, 60, canvas);
    FilledOval eyeL = new FilledOval (200, 130, 70, 60, canvas);
    FilledOval pupilR = new FilledOval (150, 130, 50, 40, canvas);
    FilledOval pupilL = new FilledOval (220, 130, 50, 40, canvas);
    FilledArc mouth = new FilledArc (150, 100, 100, 200, 0, -180, canvas);
    FilledArc insideMouth = new FilledArc (160, 115, 80, 0, -180, canvas);

    /**
    * This changes the color of the different shapes for the smiley face.
    */
    public void begin()
    {
        head.setColor(Color.yellow);
        pupilR.setColor(Color.red);
        pupilL.setColor(Color.red);
        insideMouth.setColor(Color.pink);
    } 

}

Also I guess you have the other methods and canvas declared and instantiated in the FrameWindowController class. Otherwise it will throw an error as the others have said. Good luck !!

Reasons:
  • RegEx Blacklisted phrase (2): Tia
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kailash H