Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Do you have to declare static properties and methods inside a static class?

$
0
0
Since declaring a class as static will automatically make all of its properties and methods static, do you still need to use the static keyword on properties and methods? For example: public static class MyClass : MonoBehaviour { public static int someProperty; public static void MyFunction() { Debug.Log (someProperty); } }

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>