Question: A. Create an overload of the insert method that appends the items of one list to another. void List ::insert( const List & list );

A. Create an overload of the insert method that appends the items of one list to another.

void List::insert( const List & list );

B. Create an overloaded method on the List class that sorts the items in the list. The first overload, sort(), sorts the items in ascending order; the second, sorts them in the order specified by a comparator function, e.g., in descending order.

void List::sort(); void List::sort(bool (*comparator)( T &, T & ));

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!