Chapter 14. Access specifiers

Table of Contents

We have already talked about these, but let's define them again.

public

attributes and methods that are public are accessible to every user of the objects.

It is usually a bad idea to make attributes public.