K
Kasper Middelboe Petersen
Hello,
To illustrate my problem I'll use the common classes:
Class Figure {
..
}
Class Circle : public Figure {
..
}
Figure *f = new Circle();
Figure *fcopy;
Now my problem is, how do I get the fcopy pointer to point to a copy
of the object f points to? I do not know more about the object than
than its a Figure (it could be a triangle or whatever too).
Thanks,
Kasper
To illustrate my problem I'll use the common classes:
Class Figure {
..
}
Class Circle : public Figure {
..
}
Figure *f = new Circle();
Figure *fcopy;
Now my problem is, how do I get the fcopy pointer to point to a copy
of the object f points to? I do not know more about the object than
than its a Figure (it could be a triangle or whatever too).
Thanks,
Kasper