Skip to content

Commit

Permalink
Sulution ver. 2
Browse files Browse the repository at this point in the history
  • Loading branch information
NR committed Oct 6, 2024
1 parent 3a604ab commit 5cbfad3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand All @@ -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...")
Expand All @@ -30,17 +30,14 @@ 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...")
return "Ads every three swipes"


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...")
Expand Down

0 comments on commit 5cbfad3

Please sign in to comment.