diff --git a/app/main.py b/app/main.py index 85be0105..d55458f3 100644 --- a/app/main.py +++ b/app/main.py @@ -10,7 +10,7 @@ def learn_skill(self, skill: str) -> None: class FrontendDeveloper(SoftwareEngineer): def __init__(self, name: str) -> None: super().__init__(name) - self.skills = ["JavaScript", "HTML", "CSS"] + self.skills += ["JavaScript", "HTML", "CSS"] def create_awesome_web_page(self) -> str: print(f"{self.name} is creating a webpage...") @@ -20,7 +20,7 @@ def create_awesome_web_page(self) -> str: class BackendDeveloper(SoftwareEngineer): def __init__(self, name: str) -> None: super().__init__(name) - self.skills = ["Python", "SQL", "Django"] + self.skills += ["Python", "SQL", "Django"] def create_powerful_api(self) -> str: print(f"{self.name} is creating an API...") @@ -30,7 +30,7 @@ def create_powerful_api(self) -> str: class AndroidDeveloper(SoftwareEngineer): def __init__(self, name: str) -> None: super().__init__(name) - self.skills = ["Java", "Android studio"] + self.skills += ["Java", "Android studio"] def create_smooth_mobile_app(self) -> str: print(f"{self.name} is creating a mobile app...") @@ -38,9 +38,6 @@ def create_smooth_mobile_app(self) -> str: class FullStackDeveloper(FrontendDeveloper, BackendDeveloper): - def __init__(self, name: str) -> None: - super().__init__(name) - self.skills = ["Python", "SQL", "Django", "JavaScript", "HTML", "CSS"] def create_web_application(self) -> None: print(f"{self.name} started creating a web application...")