If i have two classes say for example:
Class Artist, and Class Song.
Artist holds: string name, and string genre.
Song holds: string songName, and int year.
If i create an object from artist and another object from song could i merge these two together?
So i create: Artist Me, and Song s1. Can I merge them together so when I cout the object it links the artist name and genre to the song name and year, and the artist can hold as many objects of Song as there is on an album?
For instance, can i make 10 objects of song, and link them all to one object from Artist? and then theoretically make Class Album, and link them all to an object from album?
Class Artist, and Class Song.
Artist holds: string name, and string genre.
Song holds: string songName, and int year.
If i create an object from artist and another object from song could i merge these two together?
So i create: Artist Me, and Song s1. Can I merge them together so when I cout the object it links the artist name and genre to the song name and year, and the artist can hold as many objects of Song as there is on an album?
For instance, can i make 10 objects of song, and link them all to one object from Artist? and then theoretically make Class Album, and link them all to an object from album?