Uni-directionals are easy
class cylinder : public body {
virtual char* identify() const;
virtual float GetVolume() const;
virtual float GetSurface() const;
// a cylinder is described by
This is what you’d write in C++,
my object has a pointer to another object of type flavor
class cylinder : public body {
virtual char* identify() const;
virtual float GetVolume() const;
virtual float GetSurface() const;
// a cylinder is described by
This is what you’d write for Objy-
“object reference”, like a “smart pointer” to another persistent object of type flavor.
Oops, we don’t know that yet ...