Unformatted text preview: bal functions are public members.
public CustPtr Head; We have 3 functions to reference this structure.
bool Initialise(CustPtr& Head);
Add(char name, int psize, CustPtr& Head);
Add(char name, int
Remove(char name, int& psize, CustPtr& Head);
name, int psize CustPtr If we only had one list we could hide the Head
within the file scope of the functions.
Applied Programming This is the interface component.
Applied Programming The filescope Head has become a private
member of the class.
The global functions are public members.
public void LinkedList::Initialise()
Head = 0;
} This is the interface component. This is the same as before with the replacement
of the argument by the LinkedList:: prefix to
the function name.
the It app...
View Full Document
This document was uploaded on 04/07/2014.
- Spring '14