June 2012
Intermediate to advanced
288 pages
6h 48m
English
private Keyword
Using the private keyword declares private visibility for a class, variable, or method. Items with private visibility are accessible only from within the class in which the item is defined. Other classes within the program cannot access the item.
Here’s an example that declares a private class variable:
private int Diameter;
Read now
Unlock full access