AC1
A person can introduce him/herself with name and age like: My name is Tom. I am 21 years old.
AC2
A student can introduce him/herself like this: My name is Tom. I am 18 years old. I am a student.
A teacher can introduce him/herself like this: My name is Amy. I am 30 years old. I am a teacher.
AC3
A class has many students and only one teacher.
When belong to a class, A student can introduce him/herself with class number like this: My name is Tom. I am 18 years old. I am a student of class 2.
When belong to a class, A teacher can introduce him/herself with class number like this: My name is Amy. I am 30 years old. I am a teacher of class 2.
AC4(Optional)
When a new student join, the teacher of this class will say: My name is Amy. I am 30 years old. I am a teacher of class 2. Welcome Tom join class 2.
When a new student join, other students in this class will say: My name is Tom. I am 18 years old. I am a student of class 2. Welcome Jim join class 2.
- Implement the business requirement one by one, every requirement should commit at least once.
- Commit message should look like this: "feat: create person class that can introduce itself."