class ABook{ private:
AddressNode* topPtr; public:ABook() { topPtr = NULL; } ~ABook(); void Insert(string NewItem); void SortedInsert(string NewItem); void Remove(string& item);
void print();};
In your class declaration, you don't need to specify the type that it belongs to, so you need to remove the ABook:: from the method names. You only use the :: when you are doing the implementation of the method so that the compiler knows where it belongs. Inside the class declaration, its assumed to belong in the declaring type.