Vidyalelo
Python · Q45

Concept of Object Oriented Programs in Python

Programming · Python · question 45

Q45

Which of these is a private data field? def Demo: def __init__(self): __a = 1 self.__b = 1 self.__c__ = 1 __d__= 1

A.
__a
B.
__b
Answer
C.
__c__
D.
__d__

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board