Bookmark Topic Watch Topic
  • New Topic

please help for Best OO approach  RSS feed

 
shukla raghav
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Report post to moderator
while designing my application for a Educational Institute. I created a User Requirement Specification. I am facing some fundamental problems befause there are no hard and fast rules for identifying classes and its members. a programmer is flexible to choose what he/she wants but then they are unaware of the pitfall to be discovered later due to poor design. I fear this therefore i wish to ask these questions.

In my application i want to have a method that will generate (get) the Chapter Test. lets say i name this method getTest(). Where should i place this method in the Chapter class or the Test class. taking of Object oriented real world model every chapter will have a test and we may also say Test class will have a getTest() method. I mean



OR



what would be more OO approach??? please come up with best of the best logics to come to an answer that we could consider standard for further such problems.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Report post to moderator
Locking and continuing in your new thread.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!