#Multiple inheritance occurs when the child class
# inherits from more than one parent class.
class employee:
    company = " Amazon"
    ecode = 120
    def upgradeecode(self):
        self.ecode = self.ecode+2
class freelancer:
    company = "Fiverr"
    level = 10
    def upgradelevel(self):
        self.level = self.level+2

class programmer(employee,freelancer):
    name = "ahadraza"

p = programmer()
p.upgradelevel()
print(p.level)

p1 = freelancer()
p1.upgradelevel()
print(p1.upgradelevel)

p2 = employee()
p2.upgradeecode()
print(p2.ecode)
06b66d87787bd80e7a8fdc3bd7078b8a14063519
<mask token>


class freelancer:
    <mask token>
    <mask token>

    def upgradelevel(self):
        self.level = self.level + 2


class programmer(employee, freelancer):
    name = 'ahadraza'


<mask token>

class employee:
    <mask token>
    <mask token>

    def upgradeecode(self):
        self.ecode = self.ecode + 2


class freelancer:
    company = 'Fiverr'
    level = 10

    def upgradelevel(self):
        self.level = self.level + 2


class programmer(employee, freelancer):
    name = 'ahadraza'


<mask token>

class employee:
    company = ' Amazon'
    ecode = 120

    def upgradeecode(self):
        self.ecode = self.ecode + 2


class freelancer:
    company = 'Fiverr'
    level = 10

    def upgradelevel(self):
        self.level = self.level + 2


class programmer(employee, freelancer):
    name = 'ahadraza'


<mask token>
p.upgradelevel()
print(p.level)
<mask token>
p1.upgradelevel()
print(p1.upgradelevel)
<mask token>
p2.upgradeecode()
print(p2.ecode)

class employee:
    company = ' Amazon'
    ecode = 120

    def upgradeecode(self):
        self.ecode = self.ecode + 2


class freelancer:
    company = 'Fiverr'
    level = 10

    def upgradelevel(self):
        self.level = self.level + 2


class programmer(employee, freelancer):
    name = 'ahadraza'


p = programmer()
p.upgradelevel()
print(p.level)
p1 = freelancer()
p1.upgradelevel()
print(p1.upgradelevel)
p2 = employee()
p2.upgradeecode()
print(p2.ecode)

#Multiple inheritance occurs when the child class
# inherits from more than one parent class.
class employee:
    company = " Amazon"
    ecode = 120
    def upgradeecode(self):
        self.ecode = self.ecode+2
class freelancer:
    company = "Fiverr"
    level = 10
    def upgradelevel(self):
        self.level = self.level+2

class programmer(employee,freelancer):
    name = "ahadraza"

p = programmer()
p.upgradelevel()
print(p.level)

p1 = freelancer()
p1.upgradelevel()
print(p1.upgradelevel)

p2 = employee()
p2.upgradeecode()
print(p2.ecode)