Question: Private data members string contactName string contactPhoneNumber ContactNode * nextNodePtr Constructor with parameters for name followed by phone number ( 1 pt ) Public member

Private data members
string contactName
string contactPhoneNumber
ContactNode* nextNodePtr
Constructor with parameters for name followed by phone number (1 pt)
Public member functions
GetName()- Accessor (1 pt)
GetPhoneNumber()- Accessor (1 pt)
InsertAfter(ContactNode* newNode)- Insert newNode after the current node (2 pts)
GetNext()- Accessor (1 pt)
PrintContactNode()- Output contactName and contactPhoneNumber of the current node according to the format shown in the example below.

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 Accounting Questions!