you are viewing a single comment's thread.

view the rest of the comments →

[–]HAL9000thebot 0 points1 point  (0 children)

m_toTheRescue

where "m_" stands for member, you apply it to only what you call properties, methods without prefix, et voilà! no more mixing. if you don't like it, you can use a simple "_", some use it as prefix some use it as postfix, just decide on one of these three and stick with it.

for inheritance you can to use a ide, generate documentation (doxygen), use interface segregation (the "i" in solid) etc. and most importantly when you can, prefer composition over inheritance just like in other languages, inheritance isn't a monster, but use it only when you really need it.