Beispiel #1
0
        public int CompareTo(object o)
        {
            if (o == null)
            {
                return(1);
            }
            MusicalFilm f = o as MusicalFilm;

            if (f != null)
            {
                return(this.Name.CompareTo(f.Name));
            }
            else
            {
                Film fm = o as Film;
                if (fm != null)
                {
                    return(this.Name.CompareTo(fm.Name));
                }
                else
                {
                    throw new ArgumentException("Object is not a Film!");
                }
            }
        }
Beispiel #2
0
 public MusicalFilm(MusicalFilm o) : base(o)
 {
     this.Composer = o.Composer;
 }