







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








Software Engineering
public interface Shape { public float area() ; } // end interface Shape
public class Circle implements Shape { ... public float area() { return Math.PI * (radius * radius); } ... } // end class Circle
Shape s = new Shape(); // ERROR!
public abstract class Shape { public abstract float area () ; }
Each observer repeatedly polls the subject to see if event has occurred.
Subject notifies observers when the event occurs.
s.register(this);
proxy objects