One thing that I guess I did not learn correctly was when to use classes. For everything that I have had to do in school, another class wasnt entirely necessary unless I was working with objects in java. What are some good reasons and practices for using classes?
Share
Object-oriented programming models the world as software components that encapsulate data and behavior together. They communicate by sending messages to each other.
If that’s a good fit for your problem, then OOP will work.
There’s no magic recipe that says “Square peg, meet square hole.”
If you’ve already accepted OOP, then a good start on objects would be Bob Martin’s SOLID principles
http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod
http://blog.objectmentor.com/articles/2009/02/12/getting-a-solid-start