Notifications
Clear all

What is true about Python class constructors? (Choose two.)

1 Posts
1 Users
0 Likes
101 Views
(@soquirandolph)
Posts: 729
Noble Member
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

Show Answer Hide Answer

Suggested Answer: A,C

Explanation:

Reference: https://www.geeksforgeeks.org/constructors-in-python/
 
Posted : 18/01/2023 12:06 am
Topic Tags

Latest Python Institute PCAP-31-03 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: