0
Static vs Instance
What is best to use in a professional program, accessing methods usins static, like: Example.method(); Or Example ex = new Example(); ex.method(); Or the usage of this ways depends on the circumstances?
1 Answer
+ 5
It depends on the use you are going to give it. For example, if you are programming a game, you can create multiple enemies by instantiating them and editing their values ââindividually. Instead, use static modify all at once.