super class
unknown
python
2 years ago
337 B
6
Indexable
class Murid: def __init__(self): self.num_eyes = 2 def kegiatan(self): print("rebahan") class RakyatGaperi(Murid): def __init__(self): super().__init__() def kegiatan(self): super().kegiatan() print("coli ngengggggg") fahri = RakyatGaperi() fahri.kegiatan()
Editor is loading...
Leave a Comment