#Why should I not use static methods?

7 messages · Page 1 of 1 (latest)

neat meteor
#

My instructor is extremely adamant on not using static methods, almost ever. I'm trying to understand why they would rather we create an object of the class holding main() first.

I have asked them, but the answer I get is basically, "it's a bad habit to make methods static".

dense spearBOT
#

Hey, @neat meteor!
Please remember to /close this post once your question has been answered!

elder spire
#

However, that's what happened to all of us and we just had a hard time to adapt and then we were fine

#

It's fairly horrible to try and follow static-misusing code when you're used to correct coding practice though, so it might be for your teacher's comfort

neat meteor