Checkpoint 19.12.1.
We have the UML shown below for Teacher and Student. We would like to make a new abstract class Person that they can both inherit from. Arrange the attributes into the class they most logically belong to.
UML for Student and Teacher classes. Student has m_major, m_name, m_age, and m_credits. Teacher has m_name, m_yearsExperience, and m_age.
classDiagram class Student { -m_major : string -m_name : string -m_age : int -m_credits : int } class Teacher { -m_name : string -m_yearsExperience: int -m_age : int }
In your answer, place Person class first, then Teacher, then Student.