Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programming bind
#4
Have foo's constructor take whatever parameters are appropriate for its level of abstraction. Should callers of foo's constructor know about foo having a bar? If yes, go ahead and pass the bar object. You may want to have it take an abstract class or interface (or the equivalent in your language) instead.
Reply


Messages In This Thread
Programming bind - by Fiel - 2010-08-21, 09:00 AM
Programming bind - by Orit - 2010-08-21, 09:13 AM
Programming bind - by Nikkey - 2010-08-21, 10:03 AM
Programming bind - by Spaz - 2010-08-21, 02:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)