Nov-21-2019, 07:20 AM
Hey guys:)
Who can help me ?
Please guys help me (((((
Create a class Person which has attributes name, age. Create a class KazguuStudent which inherits from Person, has attribute course_level and method greet(). Create a class KazguuTeacher which also inherits from Person and has method greet().
Method greet() must print following attrubutes for KazguuStudent: "Hello! My name is [name]. I am [age] years old. I study in [course_level] course at Kazguu."
Method greet() must print following attrubutes for KazguuTeacher: "Hello! My name is [name]. I am [age] years old. I teach [course_level] course at Kazguu."
Create object student from class KazguuStudents and call method greet().
Create object teacher from class KazguuTeacher and call method greet().
Example:
Hello! My name is Arman. I am 20 years old. I study in 2 course at Kazguu.
Hello! My name is Valya. I am 30 years old. I teach 3 course at Kazguu.
Who can help me ?
Please guys help me (((((
Create a class Person which has attributes name, age. Create a class KazguuStudent which inherits from Person, has attribute course_level and method greet(). Create a class KazguuTeacher which also inherits from Person and has method greet().
Method greet() must print following attrubutes for KazguuStudent: "Hello! My name is [name]. I am [age] years old. I study in [course_level] course at Kazguu."
Method greet() must print following attrubutes for KazguuTeacher: "Hello! My name is [name]. I am [age] years old. I teach [course_level] course at Kazguu."
Create object student from class KazguuStudents and call method greet().
Create object teacher from class KazguuTeacher and call method greet().
Example:
Hello! My name is Arman. I am 20 years old. I study in 2 course at Kazguu.
Hello! My name is Valya. I am 30 years old. I teach 3 course at Kazguu.