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

Thảo Justin

New member
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: C
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 ReadOnly keyword, you include only a Get block of code in the Property procedure The Get block is such a method, which is used to read private members.
 

Tìm kiếm

Back
Top