<reponame>bvoytash/Software-University<filename>Python OOP/Inheritance/person/child.py
from project_1.person import Person


class Child(Person):
    def __init__(self, name, age):
        self.name = name
        super().__init__(name, age)


# person = Person("Peter", 25)
# child = Child("<NAME>", 5)
# print(person.name)
# print(person.age)
# print(child.__class__.__bases__[0].__name__)
OOP/Inheritance/person/child.py
from project_1.person import Person


class Child(Person):
    def __init__(self, name, age):
        self.name = name
        super().__init__(name, age)


# person = Person("Peter", 25)
# child = Child("<NAME>", 5)
# print(person.name)
# print(person.age)
# print(child.__class__.__bases__[0].__name__)
# person = Person("Peter", 25) # child = Child("<NAME>", 5) # print(person.name) # print(person.age) # print(child.__class__.__bases__[0].__name__)