Example #1
0
        public override bool Equals(System.Object otherCopy)
        {
            if (!(otherCopy is Copy))
            {
                return(false);
            }
            else
            {
                Copy newCopy          = (Copy)otherCopy;
                bool bookIdEquality   = (this.GetBookId() == newCopy.GetBookId());
                bool numberOfEquality = (this.GetNumberOf() == newCopy.GetNumberOf());
                bool dueDateEquality  = (this.GetDueDate() == newCopy.GetDueDate());


                return(bookIdEquality && numberOfEquality && dueDateEquality);
            }
        }