Untitled

 avatar
user_3592770
plain_text
a year ago
812 B
3
Indexable
Never
class User:
    def sign_in(self):
       print("Logged in")
    
    
class Wizard(User):
    def __init__(self,name,power):
        self.name = name
        self.power = power
        
    def attack(self):
        print(f'Attacking with power of {self.power}')
        
class Archer(User):
    def __init__(self,name,arrows):
        self.name = name
        self.arrows = arrows
    
    def check_arrows(self):
        print(f'{self.arrows} remaining')
        
    def run(self):
        print("Run really fast")
        

class HybidBorg(Wizard, Archer):
    def __init__(self, name , power, arrows):
        Archer.__init__(self, name , arrows)
        Wizard.__init__(self,name,power)
        
        
        
hb1 = HybidBorg("Borgy", 50,100)
print(hb1.check_arrows())