Sail E0 Webinar
Question
Which of these is a private data field?def Demo:def __init__(self):    __a = 1    self.__b = 1    self.__c__ = 1    __d__= 1
Options:
A .  __a
B .  __b
C .  __c__
D .  __d__
Answer: Option B


Variables such as self.__b are private members of the class.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers