Is calling static methods via an object “bad form”? Why?
In a recent question, someone asked about static methods and one of the answers stated that you generally call them with something like: MyClassName.myStaticMethod(); The comments on that also stated that you could also call it via an object with: MyClassName myVar; myVar.myStaticMethod(); but that it was considered bad form. Now it seems to me that doing this can actually make my life easier so I don't have to worry about what's static or not (a) . Is there some problem with calling static functions via an object? Obviously you wouldn't want to create a brand new object just to call it: