DEV Community

Discussion on: When do you create a function or method?

Collapse
 
codevault profile image
Sergiu Mureşan

That's the first time I heard the term inheritance error. Do you mean you will not create any classes?

Collapse
 
georgeoffley profile image
George Offley

No, I create them out of habit anyway. However, consciously I know I need to create one whenever I need something that will repeat itself somewhere else.

I also said inheritance error when I think I meant scope error.