<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// Circle objects are paint()able in an applet - this is
// because we implement paint(Graphics g){}

import java.awt.Graphics;
import java.applet.Applet;

public class Circle {

    int x=100; 
    int y=200;
    int radius=25; 
    
    Circle(){}

    Circle(int x, int y, int r) { 
      this.x = x;
      this.y = y;
      this.radius = r;
    }
    
    public void paint(Graphics g) {
      // Graphics has a drawOval(), we simply use it 
      g.drawOval(x-radius, y-radius, 2*radius, 2*radius); 
      //g.drawString("Hello world!", 50, 75);
    }// paint()

}// Circle </pre></body></html>