Artist, Manager and Album
classDiagram
class Manager {
-String firstName
-String lastName
-int rate
}
class Artist {
-String firstName
-String lastName
-String stageName
+add(Album album)
}
class Album {
-String titre
-int nbTracks
}
Artist "1" --> "0..*" Album
Manager "1" --> "1..*" Artist
Artist
Section titled “Artist”Represents a musical artist.
- Can have multiple albums
- Can have a manager
- Method to add albums to their collection
- Private properties have getters and setters
Manager
Section titled “Manager”Represents an artist’s manager.
- Manages one or more artists
- rate: Management fee or commission rate
- Private properties have getters and setters
Represents a music album.
- Created by an artist
- titre: Album title
- nbTracks: Number of tracks on the album
- Private properties have getters and setters

