basic pseudo-model of what I have so far:
Role
----------
----------
GetCourses():query
Faculty Extends Role
----------
----------
GetCourses():query
Student Extends Role
----------
----------
GetCourses():query
TeachingAssistant Extends Role
----------
----------
GetCourses():query
Employee Extends Role
----------
----------
GetCourses():query
In these examples, GetCourses() will query different information
depending on the role. Therfore, I will override the methods in each
subclass. This makes sense for the first three subclasses.
Employees, however, will not have any courses. In that class, should I
just have Employee.GetCourses() throw an error, or throw something in
the Role class that covers all possible causes of not having any
courses?
Thanks
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

