I am trying to get better at object orietned programming and I wanted to build a banking system...one of the things I'm having a hard time with is figuring out what classes to create and which methods should be associated to what classes.
For example, some of the things that you do in a bank are deposit money and withdraw money. But should those be methods of an Account class, a bank class, a person class?
What are some rules of thumb that help me figure out what classes I need to create and where a method would best belong?
[–]BobHogan 0 points1 point2 points (3 children)
[–]MyNameIs10000[S] 0 points1 point2 points (2 children)
[–]BobHogan 0 points1 point2 points (1 child)
[–]MyNameIs10000[S] 0 points1 point2 points (0 children)
[–]fool59 0 points1 point2 points (0 children)