cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Class Composition problems
Class Composition problems
Jul 9, 2014 at 1:32pm UTC
marcoE
(9)
Hello guys.
I'm tryng to learn how to implement c++, and at same time learning OOD.
I'm tryng to implement the following Class Diagram.
https://dl.dropboxusercontent.com/u/710615/class%20diagramV3.png
Diamond is the name of the store.
I know that a musicCD "has a" Song . However, I'm not figuring out the best way to implement this kind of relationship at this context.
I hope that you can help me.
There is my source code:
https://dl.dropboxusercontent.com/u/710615/newDiamanteProject_v3.zip
Jul 9, 2014 at 4:56pm UTC
ne555
(10692)
to resolve your include circularity
http://www.cplusplus.com/forum/articles/10627/
> I know that a musicCD "has a" Song .
> However, I'm not figuring out the best way to implement this kind of relationship at this context.
1
2
3
4
class
musicCD{
private
: std::vector<Song> foo; };
PS: you may use github or bitbucket for version purposes.
Topic archived. No new replies allowed.