The code contained in the ______ allows an application to retrieve the contents of the Private variable associated with the property.

The code contained in the ______ allows an application to retrieve the contents of the Private variable associated with the property.
A. Set Block
B. Retrieve
C. Get Block
D. Getter Block
 
Answer: A
Explanation: Public members are visible to the application using the instance of a given class, private members are invisible. To access the private members, public member functions have to be used. If the header contains the WriteOnly keyword, you include only a Set block of code in the Property procedure. The Set block is such a method, which is used to change private members.
 

Tìm kiếm

Back
Top