May 2003
Intermediate to advanced
808 pages
32h 24m
English
public access specifier — No restrictions on member access
access-specifier := publicThe public keyword can be
used within a class definition (followed by a colon) to mark
subsequent member declarations as public or before a base-class name
in the class header to mark the inheritance as public. The default
access level of a struct is public,
both for members and base classes.
Public members can be used freely by any other class or function.
Public inheritance means all members of the base class retain their accessibility levels.
See private for an
example.
class, private, protected, struct, Chapter 6