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 PostDo you mean to say that 2 of the derived classes share a member which the 3rd one does not?
If so, you probably need an intermediary derived class, which contains those shared member(s) (either public or protected) - and derive the 2 "related" classes from this intermediary class. …
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.