CSE503: Software Engineering
Lecture 7 (January 20, 1999)

David Notkin

#include <list.h>

class model_c {
public:
virtual ~model_c();

virtual void attach(view_c*);

virtual void detach(view_c*);

virtual void notify();

protected:

model_c();

private:

List<view_c*> _views;};

//definition for base view class

class view_c {

public:

virtual ~view_c();

virtual void update()=0;protected:

view_c();

};