Esempio n. 1
0
import classPerson

name = "mutita kunghae"
age = 21
address = "Trang"

person = classPerson.Person(name, age, address)

print(person.get_name())
print(person.get_age())
print(person.get_address())
print(person.get_info())
Esempio n. 2
0
import classPerson
import classEmployee

x = classPerson.Person("Bruno", "Dias", "33", "12345")
y = classEmployee.Employee("Petter", "Parker", "22", "67890", "ID123",
                           "Marketing")

print(x.getPerson())
print(y.getEmployee())