jrob8577
9/11/2012 - 8:04 AM

Lecture 2 - Abstract GraphicObject class

Lecture 2 - Abstract GraphicObject class

abstract class GraphicObject {
  int x, y;

  void moveTo( int newX, int newY ) {
    // ..
  }

  abstract void draw();
  abstract void resize();
}

class Circle extends GraphicObject {    
  void draw() { 
    // implement draw();
  } 

  void resize() { 
    // implement resize();
  } 
}