#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    1
    Rep Power
    0

    Objects: Class Design


    Supposing I was designing a Class structure that dealt with projects and tasks. And supposining there were groupings of projects, lets call them project_lists. Then is it likely that I would have the following Classes:
    Projects
    Project
    Tasks
    Task

    and as Project_lists would probably have the same methods and properties as Projects, would I need a separate Class for them?

    Thanks - Mike
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    30
    Rep Power
    4
    no,

    you only need 2 classes
    Project
    Task

    and then in the code have an array of projects and an array of tasks

IMN logo majestic logo threadwatch logo seochat tools logo