Results 1 to 2 of 2
  1. #1
    JT4NK3D's Avatar
    JT4NK3D is offline Member
    Join Date
    Nov 2007
    Rep Power

    Exclamation [SOLVED] code organization

    I had another thread about this but i marked it as [SOLVED] since i thought i had it figured out. But it turns out I didn't. I have a project that I'm making with one driver class and many other classes that the driver class will use. So I started out having the driver class as the superclass and the rest subclasses, but then i realised that there is no reason for the subclasses to inherit the driver class as they do not use it. It's the other way around, the driver class uses all the subclasses. Should the driver class be seperate from the class hierarchy and just use them all? I'm confused, please reply.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power


    It's depend on your application, the way you want to implement it. Normally why we followed those concepts is to maintain a much better, readable, maintainable code development for future changes.

Similar Threads

  1. I need help fixing my code.. or non code?
    By MrHuggykins in forum New To Java
    Replies: 1
    Last Post: 03-19-2008, 11:12 PM
  2. Here is my code, can anyone here help me?
    By Java_Man in forum New To Java
    Replies: 1
    Last Post: 02-16-2008, 03:41 AM
  3. Pls some one to help mi wit this code
    By _nik_ in forum New To Java
    Replies: 3
    Last Post: 02-10-2008, 03:02 AM
  4. class organization question
    By maa11235 in forum New To Java
    Replies: 0
    Last Post: 12-17-2007, 04:25 AM
  5. Replies: 1
    Last Post: 04-26-2007, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts