Every campus has full time students who attend classes between 8h00 and 17h00 during the week. Every campus also has part time students who attend classes between 18h00 and 21h00 on weekdays. In the scenario provided at the beginning of Q.1.1, it is stated that no student should be allowed to access the campus after 12h00. The campus has decided to change this rule to state “no full-time student will be allowed to access the campus after 12h00. Part time students can access the campus as from 17h00 By making use of a class diagram, demonstrate how the concept of inheritance can be used to represent the scenario provided at the beginning of this question. Marks will be awarded as follow: Class diagram showing inheritance; Attributes; Instance methods; Access specifiers
Every campus has full time students who attend classes between 8h00 and 17h00 during the
week. Every campus also has part time students who attend classes between 18h00 and 21h00 on
weekdays. In the scenario provided at the beginning of Q.1.1, it is stated that no student should
be allowed to access the campus after 12h00. The campus has decided to change this rule to state
“no full-time student will be allowed to access the campus after 12h00. Part time students can
access the campus as from 17h00
By making use of a class diagram, demonstrate how the concept of inheritance
can be used to represent the scenario provided at the beginning of this
question. Marks will be awarded as follow:
Class diagram showing inheritance;
Attributes;
Instance methods;
Access specifiers
Step by step
Solved in 2 steps with 1 images