Answers for "python multiclass inheritance with inputs"

0

python multiclass inheritance with inputs

class a:
    def __init__(self):
        print("Hello")

class c:
    def __init__(self, text):
        print(text)
        
class d(a,c):
   def__init__(self,text):
       a.__init__(self)
       c.__init__(self,text)
Posted by: Guest on November-14-2020

Python Answers by Framework

Browse Popular Code Answers by Language