Book a Demo

Author Topic: Shoudl i have derived classes for Certifications?  (Read 2374 times)

peter king

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Shoudl i have derived classes for Certifications?
« 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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Shoudl i have derived classes for Certificatio
« Reply #1 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