| 41. |
Methods of a class that provide access to private members of the class are called as ______ and ______
|
||||||||
|
Answer:
Option (a) |
| 42. |
Which of these is a private data field?
def Demo:
def __init__(self):
__a = 1
self.__b = 1
self.__c__ = 1
__d__= 1
|
||||||||
|
Answer:
Option (b) |
| 43. |
Private members of a class cannot be accessed.
|
||||
|
Answer:
Option (b) |
| 44. |
The purpose of name mangling is to avoid unintentional access of private class members.
|
||||
|
Answer:
Option (a) |
| 45. |
Which of the following is false about protected class members?
|
||||||||
|
Answer:
Option (c) |