Sorry, I was in the process of shortening and smoothing my example
when my client sent it out.  Here's where I left off.

class Human {
  int age;
  string name;
public:
  ...
  bool TryToRob( int amount );
private:
  readAgeFromDB(...);
  readNameFromDB(...);
};

class Man : public Human {
...
};

class Woman : public Human {
public:
  void Impregnate( ... );
  bool isPregnant( ... );
  Human* foetus( ... );
};

How they read and write to the DB is in the implementation.

Simon
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to