Check out example codes for "non static class can have static methods". It will help you in understanding the concepts better.

Code Example 1

Non static class can have static member

Learn ReactJs, React Native from akashmittal.com