// extra credit Contains chunk
        // Test if aBook is contained in this BookList.
        // Return true if book IsEqual to a Book in the list,
        // false otherwise.
        public bool Contains(Book book)
        {
            // code for extra credit

             return true;  //so stub compiles
        }
Esempio n. 2
0
        // extra credit IsEqual chunk
        // Return true if all the corresponding fields in this Book
        // and in aBook are equal.  Return false otherwise.
        public bool IsEqual(Book aBook)
        {
            // code for extra credit

             return true; //so skeleton compiles
        }
        //AddBook chunk
        // Add book to the list.
        // The regular assignment version always returns true.
        public bool Addbook(Book book)
        {
            // code

             return true; //always true in basic assignment
        }