Example #1
0
 public override bool Equals(System.Object otherCopy)
 {
     if (!(otherCopy is Copy))
     {
         return(false);
     }
     else
     {
         Copy newCopy           = (Copy)otherCopy;
         bool idEquality        = (this.GetId() == newCopy.GetId());
         bool bookIdEquality    = (this.GetBookId() == newCopy.GetBookId());
         bool availableEquality = (this.GetAvailability() == newCopy.GetAvailability());
         return(idEquality && bookIdEquality && availableEquality);
     }
 }