In a "has-a" class relationship does the contained class have to be implemented inside the class that contains it or can it be written entirely separately in a different file?
For example:
let's say:
class Pen
{
public:
.
.
.
private:
Ball point;
};
Can class Ball be in a separate header file or do I have to implement it within class Pen?