0

I'd like developer an Android app in JAVA.

But not quite familiar with design mode.

This this situation, I want to define a class and unique instance Group. And a serious functions, such as setName, createGroup

Well, should I create a GroupManager class and move the setName, createGroup functions to this class, and manager the unique Group instance via GroupManager?

Any answer will be appreciated.

Alex Chan
  • 1,116
  • 3
  • 15
  • 33
  • It depends. But why would you do that? Setters and some creator are perfectly suitable to the Group class itself – Eel Lee Nov 12 '13 at 14:51
  • Cause I want to make the class Group a model. createGroup needs a lot of work to do that make Group not so clean. – Alex Chan Nov 12 '13 at 14:55
  • So... why don't you provide us some code? What have you tried, what does your class look like. It would be much easier to help than now. – Eel Lee Nov 12 '13 at 15:08

0 Answers0