Mehrfachvererbung
Verfasst: Montag 8. Juni 2020, 16:39
Hi Forum
Ich beschäftige mit Mehrfachvererbung.
Leider finde ich nirgendwo Infos die richtig sind.
der Code:
class Prozessor():
def __init__(self,Prozessor_Modell):
self.Prozessor_Modell
class Festplatte():
def __init__(self,Festplatten_Modell):
self.Festplatten_Modell = Festplatten_Modell
class Pc(Prozessor,Festplatte):
def __init__(self,Prozessor_Modell,Festplatten_Modell):
pass
Ich hoffe ihr könnt mir da weiter helfen
Ich beschäftige mit Mehrfachvererbung.
Leider finde ich nirgendwo Infos die richtig sind.
der Code:
class Prozessor():
def __init__(self,Prozessor_Modell):
self.Prozessor_Modell
class Festplatte():
def __init__(self,Festplatten_Modell):
self.Festplatten_Modell = Festplatten_Modell
class Pc(Prozessor,Festplatte):
def __init__(self,Prozessor_Modell,Festplatten_Modell):
pass
Ich hoffe ihr könnt mir da weiter helfen