Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #python #multiclass #inheritance #inputs
ADD COMMENT
Topic
Name
4+4 =