designing and implementing class hierarchies


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: designing and implementing class hierarchies

  1. #1
    Join Date
    Sep 2005
    Posts
    11

    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.

  2. #2
    Join Date
    Aug 2005
    Posts
    43
    Seems like someone is too lazy to do their homework and wants someone else to do it for him...

  3. #3
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center