Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Class Question
Post: RE: Class Question

take all the default arguments to the end of the function declaration like def __init__(self, name, hp, mana, atkdmg, chardef baselevel=1,basedmg=0, basedef=0):And call accordingly
Rajesh1978 General Coding Help 5 2,358 May-22-2018, 09:41 AM
    Thread: Class Question
Post: RE: Class Question

The default argument should be at the end and no non-default argument should follow that.
Rajesh1978 General Coding Help 5 2,358 May-22-2018, 09:25 AM
    Thread: Constructor
Post: Constructor

Hi All, Just wanted to know in what scenario we need to override the constructor in python? And how to do that? Thanks
Rajesh1978 General Coding Help 2 1,944 May-22-2018, 09:18 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020