Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • How is model going to be used after assignment? The best solution will depend on that. Commented Apr 7, 2016 at 19:16
  • 5
    "I am doing this to avoid code redundancy". Don't do that too early! Keep away from avoiding redundancy until you can see what really is redundant and can be factored into a (non-empty) interface. Then you avoid redundancy. Commented Apr 7, 2016 at 20:44
  • I can not accept any answer since they do not provide enough answers. I tried all of that things from answers before I asked question here. Commented Apr 8, 2016 at 12:30
  • @pregmatch I can take a look at your updated question but I would prefer that you ask it as a separate question considering that there has been a good amount of activity already eg. the votes and the comments may not reflect the original answer with the new content. If you can cut the new content out of the question and put a link here for the new question, I'll be sure to answer it :). Commented Apr 9, 2016 at 0:01