-
designing and implementing class hierarchies
You have been placed in charge of designing a University Administration System. Old versions were not implemented using an object oriented approach and you have been asked to come up with a prototype class design. Initially all that is required is a hierarchy that satisfies the following criteria:
a) The system contains Lecturers, UnderGradStudents and PostGradStudents.
b) Every Person in the system has a name.
c) The system also holds:
i) whether a Lecturer is at a senior level ‘S’ or a normal level ‘N’.
ii) the student number of each Student
iii) The fee structure of each Student (assume “Full Fee” for PostGradStudent, “HECS” for UnderGradStudent)
iv) A String outlining the previous qualification of a PostGradStudent
v) whether or not an UnderGradStudent wants to be part of the mentorship program (‘Y’ or ‘N’).
All the system is required to do initially is have accessor and mutator methods for each instance field and a toString method. The toString method returns a String that reports all the details relating to that class.
Design and implement what you believe to be the best possible class hierarchy you can for this system.
1. Sketch out a UML style class diagram.
2. Are you going to use abstract classes? Interfaces? Be ready to justify your decisions.
3. Do your best to construct your system. Of course you will need to create a test harness for your program.
-
Seems like someone is too lazy to do their homework and wants someone else to do it for him...
-
Come up with a suggestion for a class hierachy and we'll have a look at it
eschew obfuscation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks