missing 3 required positional arguments

technical talkiess
0

 If you inheritance the more than one class …. First class init function run so please add the parameter in the calling function



Traceback (most recent call last):

  File "c:\Users\ukv-208\Downloads\prac\python\oops.py", line 32, in <module>

    karan = itPerson()

            ^^^^^^^^^^

TypeError: Employee.__init__() missing 3 required positional arguments: 'name', 'age', and 'salary'


Solution:- 

Apne kisi class ko inherit kiya aur us class me agar constraucter hai to apko child class me wo parameter pass karne hopnge

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)