So I've dived into OOP after quite some time, and I stumbled upon another one of these "good practices" that help you make your code look cleaner better etc.
So inline methods.
I know that inline methods are methods that are not just declared but also defined in the class itself.
I heard we should define them inline only if we have smaller pieces of code.
So my question is?
What is meant when said smaller methods?
Does it mean constructors, destructors, etc. methods without anything really in them, quite frankly we can create an initialization list and have no single parameter inside a constructor.
But then again that would mean separating the code, longer methods in .cpp and
smaller just inline in the .h
Which looks cleaner? more readable?
What I have tried:
Tried both methods, and would like to know which looks cleaner.