next up previous
Persistenz von Klassen- bzw. Objekthierarchien


Beispiel, Ausgabe:

 
// File: oNaiv.cc

#include <iostream.h>
#include <PunktV.h>
#include <NaivRctk.h>
#include <NaivRtRn.h>

int main()
{
  Rechteck r1(Punkt(0., 0.), Punkt(6., 5.));
  RechteckRund r2(Punkt(6., 0.), Punkt(15., 5.));

  cout << r1 << endl;
  cout << r2 << endl;
}



next up previous