Notifications
Clear all
Topic starter
What is true about Python class constructors? (Choose two.)
- A . there can be more than one constructor in a Python class
B. the constructor must return a value other than None
C. the constructor is a method named __init__
D. the constructor must have at least one parameter
Suggested Answer: A,C
Explanation:
Reference: https://www.geeksforgeeks.org/constructors-in-python/
Explanation:
Reference: https://www.geeksforgeeks.org/constructors-in-python/
Posted : 18/01/2023 12:06 am