Please create the following inheritance tree with the following methods. For the purposes of this assignment, make attri
Posted: Thu Jul 14, 2022 2:12 pm
Please create the following inheritance tree with the following methods. For the purposes of this assignment, make attributes have default values except for the names (otherwise, it could get quite messy!). In other words, be sure that the graduate, undergraduate, and faculty classes take names as a default argument, and that's all. - A Cardinal has the following attributes and methods: ID (attribute) Mailing address (attribute) Name (attribute) - A Student is a type of Cardinal that has the following attributes and methods: GPA (attribute) Home address (attribute) Major (attribute) Classes (attribute - HINT: make this a list! Make the default an empty list) Enroll_in_class (method) - A Graduate is a type of Student that has the following attributes: Undergrad_institution (attribute) - An Undergraduate is a type of Student has the following attributes: - Year (attribute) - A Faculty is a type of Cardinal that has the following attributes and methods: Office (attribute) Classes (attribute - HINT: make this a list! Make the default an empty list) Classes_Taught (method) This code should produce the following: