class Employee:
    employee_count = 0

    def __init__(self, name, salary):
        self.name = name
        self.salary = salary
        Employee.employee_count += 1

    def apply_raise(self, percent):
        self.salary += self.salary * (percent / 100)


emp1 = Employee("홍길동", 3000000)
emp2 = Employee("김철수", 4000000)

print(Employee.employee_count)

emp1.apply_raise(10)
print(emp1.salary)

emp2.apply_raise(5)
print(emp2.salary)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: