If any of a class’s components has a name that starts with two underscores (___), then:

Posted by: Pdfprep Category: PCAP-31-02 Tags: , ,

If any of a class’s components has a name that starts with two underscores (___), then:
A . the class component’s name will be mangled
B . the class component has to be an instance variable
C . the class component has to be a class variable
D . the class component has to be a method

Answer: A

Explanation:

Reference: https://hackernoon.com/understanding-the-underscore-of-python-309d1a029edc

Leave a Reply

Your email address will not be published.