Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

abstract class Course

 
alaina peeler
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im supposed to design a set of classes that define various courses in my curriculum. I have to include the title, number, description of class, and department that teaches the course......what methods could i make abstract.....im a little confused on setting this one up
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From your description so far it sounds like a single class would do the job. In a running program you could create any number of instances to represent different courses. With just that, I don't see any need for abstract methods.

But, if your assignment included instructions to use some abstract methods in an abstract class you'll have to find some. Can you give any more details about the assignment? Maybe it will have some hints.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic