If a variable is said to have block scope then that variable:
a) can be accessed by all methods
b) can be accessed only by certain methods
c) can be accessed only by the method in which it was defined
d) None of the above
c) can be accessed only by the method in which it was defined
Computer Science & Information Technology
You might also like to view...
Workbooks can be posted online but control of them CANNOT be shared
Indicate whether the statement is true or false.
Computer Science & Information Technology
MC Python rewrites data member __privateData in a class named PrivateClass to______ .
a) private_privateData_. b) _private__privateData. c) __PrivateClass__privateData. d) None of the above.
Computer Science & Information Technology