Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: peter king on November 17, 2009, 01:27:02 am

Title: Shoudl i have derived classes for Certifications?
Post by: peter king on November 17, 2009, 01:27:02 am
hi Friend,

In my Applicant management system

I have added class "Certification'.. however there can be many ttypes of certification such as in the british system Oridinary Level (Priamry certification), Advance level (seconday) and Unverity or Polytech for teritary ... therefore

i have derived three classes from certification class
1. PrimaryCertification
2. Secondary Certification
3. Teritary Certification
4. OtherProfessionalCertication (optional class)

I also added a "Result" class that holds results for each certification.
if i create four derived classes for certification then i should have four derived classes of Results for each certification....

Should i do this or should i create only one certification class and one Result class and make a relationship bwteen them?

Thanks
Title: Re: Shoudl i have derived classes for Certificatio
Post by: Geert Bellekens on November 17, 2009, 01:49:36 am
Peter,

As I said in your previous topic, it all depends on what you want to do with those certifications.
Maybe you can follow the rule that you don't create subclasses unless you really have a reason for it.

Geert