Exemple #1
0
    public static void Main(string[] args)
    {
        Artist a1 = new Artist("Taylor", "Swift");

        a1.Display();
        Song s1 = new Song(1, "Girl At Home");

        s1.AddArtistInfo(a1);
        Song s2 = new Song(2, "The Last Time");

        s2.AddArtistInfo(a1);
        Song s3 = new Song(3, "The Moment I Knew");

        s3.AddArtistInfo(a1);
        s1.Display();
        s2.Display();
        s3.Display();
        Album ab1 = new Album("Red");

        ab1.AddSong(s1);
        ab1.AddSong(s2);
        ab1.AddSong(s3);
        ab1.DisplaySongs();
        ab1.RemoveSong(2);
        ab1.DisplaySongs();
    }
Exemple #2
0
    public static void Main(string[] args)
    {
        Artist a1 = new Artist("Taylor", "Swift");

        a1.Display();


        Song x = new Song(1234567891, "Girl at Home");
        Song y = new Song(1234567819, "The Last Time");
        Song z = new Song(1234567812, "Teardrops");

        x.AddArtistInfo(a1);
        y.AddArtistInfo(a1);
        z.AddArtistInfo(a1);

        x.DisplaySong();
        y.DisplaySong();
        z.DisplaySong();

        Album r = new Album("Red");

        r.AddSongs(x);
        r.AddSongs(y);
        r.AddSongs(z);

        r.DisplaySongs();

        r.RemoveSong(x);

        r.DisplaySongs();
    }
Exemple #3
0
    public static void Main(string[] args)
    {
        Console.WriteLine("Hello World");
        Artist Aone = new Artist("Testing", "Time");

        Aone.Display();
        Song Sone   = new Song("1234567890", "Time for music");
        Song Stwo   = new Song("1234567891", "Time for testing");
        Song Sthree = new Song("1234567892", "Time to test");

        Sone.AddArtistInfo(Aone);
        Stwo.AddArtistInfo(Aone);
        Sthree.AddArtistInfo(Aone);
        Sone.Display();
        Stwo.Display();
        Sthree.Display();
    }
Exemple #4
0
    static public void Main()
    {
        Artist artist = new Artist("Taylor", "Swift");

        artist.Display();

        Song s1 = new Song(1249475837, "Girl at home");
        Song s2 = new Song(2094756175, "The Last Time");
        Song s3 = new Song(3647581041, "The moment I knew");

        Console.WriteLine();
        s1.AddArtistInfo(artist);
        s2.AddArtistInfo(artist);
        s3.AddArtistInfo(artist);

        Console.WriteLine();
        s1.Display();
        s2.Display();
        s3.Display();
    }
Exemple #5
0
    public static void Main(string[] args)
    {
        //creating the artist
        Artist SB = new Artist("Scott", "Bonnette");

        //displaying said artist
        SB.Display();
        //creating the songs
        Song s1 = new Song(1234567890, "Body Terror Song");
        Song s2 = new Song(0987654321, "Survival Song");
        Song s3 = new Song(1122334455, "Kokopelli Face Tattoo");

        //adding the artist's info to those songs
        s1.AddArtistInfo(SB);
        s2.AddArtistInfo(SB);
        s3.AddArtistInfo(SB);
        //displaying song info, including artist info
        s1.Display();
        s2.Display();
        s3.Display();
        //creating the album
        Album a1 = new Album("The Best of Andrew Jackson Jihad");

        //adding songs to the album
        a1.AddSongs(s1);
        a1.AddSongs(s2);
        a1.AddSongs(s3);
        //displaying songs on the album for the 1st time
        a1.DisplaySongs();
        //removing song #2
        //for some reason it's displaying the Album Title rather than the song title and I cant figure out why.
        //Anyway, partial credit here I come!
        a1.RemoveSong(0987654321);
        //Displaying songs on the album for the last time
        a1.DisplaySongs();

        //Thanks for a great semester Professor! - JV
    }
Exemple #6
0
    public static void Main(string[] args)
    {
        Artist victor = new Artist("Victor", "Leroy");

        victor.Display();
        Song s1 = new Song(0000000001, "Song 1");

        s1.AddArtistInfo(victor);
        Song s2 = new Song(0000000002, "Song 2");

        s2.AddArtistInfo(victor);
        Song s3 = new Song(0000000003, "Song 3");

        s3.AddArtistInfo(victor);
        s1.Display();
        s2.Display();
        s3.Display();

        Album a1 = new Album("Album 1");

        a1.AddSongs(s1);
        a1.AddSongs(s2);
        a1.AddSongs(s3);
    }