Private Variables
by
, January 29th, 2012 at 04:52 PM (1127 Views)
Private variables cannot be used over multiple classes. They are specific to the class in which they were created, hence the private part. You can declare a private variable by writing private before it, as seen below.
private String devName;
If the variable devName was in Class2, it would not be able to be used in Class1, since it is exclusive to its home class, if you will.