A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
OO, Patterns, UML and Refactoring
How will you design the classes
Joined: Mar 01, 2012
Mar 20, 2012 06:13:23
1. How will you design a BOOK and a AUTHOR class?
What kind of association will be between them ?
How would you instantiate them?
will you select?
Joined: Mar 02, 2005
Mar 20, 2012 06:42:34
Book HAS-A Author.
For creation use -
2. Dependency Injection.
I am all for DI as it removes tight coupling and is configurable as well.
Joined: Mar 17, 2012
Mar 20, 2012 07:24:35
A book has one or more authors.
Creation strategy depends on how the information to create the book is going to be made available and how complex it is to create a book instance.
I agree. Here's the link:
subject: How will you design the classes
What If i don't use any Design Patterns?
How to measure a designs "goodness"
What does technical risk means?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015