The problem we have been set is to make 3 classes which derive from a base class and 2 of these derived classes has a relationship with each other, now i can get only one of the derived classes to have a relationship with the other, but when i try to add a relationship to the other i cant scope problems i think. Any ideas pointers would be greatly appreciated.
rio 0 Newbie Poster
Recommended Answers
Jump to PostCould you be more specific when you say "relationship"? That's a really broad term.
Jump to Post"Has-A" is typically implemented with data members. To get a circular relationship you can't use straight objects because a class has to be defined before it's instantiated and it can't be instantiated if any of the members have an incomplete type. However, you *can* have a pointer to an incomplete …
All 7 Replies
Narue 5,707 Bad Cop Team Colleague
Bench 212 Posting Pro
rio 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
dubeyprateek 26 Junior Poster
Narue 5,707 Bad Cop Team Colleague
rio 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.