![]() |
![]() |
![]() |
![]() |
![]() |
|
header and link member variables by placing them in the
private portion of the appropriate class definitions.
header class member functions require access to link
member variables, and because the header class is not a natural subclass of
the link class, you need to provide access by declaring the
header class to be a friend of the link class.
friend class name of class to be granted access;