functionlanguage-agnosticprogramming-languagesclass-design

When to make class and function?


I am a beginner to programming when I start to code I just start writing and solve the problem. I write whole program in a single main function. I don't know when to make class, and functions.

What are good books which I read to learn these concepts?


Solution

  • A very general question, so just a few rules of thumb: