ok so how do i write main test program to test the copy constructor and assignment operator in this program...how do i know if its working as its suppose to?i just want to know about copy and assignment operator..i have figured out the test program for other things..Here my program :
how do i write main test program to test the copy constructor and assignment operator in this program
As your class has pure virtual functions, you can't instantiate it directly. You have to create a derived class that fills in the missing functions appropriately.
You then put a certain number of items in the list and copy it to a new one and compare them. That'll test copy construction.
Do the same again, but assign to an existing empty list. That'll test assignment.
If it's automated, test at different number of values.