Explain the difference between Public and Private variables for a class.
What will be an ideal response?
The Public variables declared in a class can be accessed by any application that contains an instance of the class. The Public variables are exposed to the application, whereas the Private variables are hidden from the application. The Private variables are not visible to applications that contain an instance of the class. A class's Private variables can be used only by instructions within the class itself. A Private variable must be referred to indirectly through the use of a Public property.
You might also like to view...
The program into which you insert an object is called the ________ program
A) destination B) object C) final D) source
If condition q is NUM < VALUE, what is condition not q?
a) VALUE < NUM b) VALUE > NUM c) NUM = VALUE d) NUM ? VALUE