• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is this an inheritance relationship?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm creating a course enrollment system and have a question about the domain model I've designed thus far. A central domain class is Course, which represents a unique course offering (e.g. Intro to Psychology, Advanced Calculus). The Seminar class represents a scheduled instance of a Course (e.g. Intro to Psychology-2nd Semester, MWF 1:00-2:00pm). I modeled these classes as Associations (Courses will have 1..n Seminars). This seems right, but I can see how it might be argued (weakly IMO) that this an Inheritance relationship. After all, isn't a Seminar a specialized type of Course?

Thanks for any advice/feedback!
 
reply
    Bookmark Topic Watch Topic
  • New Topic