Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
public is a keyword for setting class access level to public (the other access levels are private and protected) or for public inheritance.
The public part of a class is called its interface.
A class created with the keyword class has a private access level by default, a class created by the keyword struct has public access level by default.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.