I want to create a class that is usable without being instanced, but that can also be instanced. Similar to a math class I suppose.
Thanks
I want to create a class that is usable without being instanced, but that can also be instanced. Similar to a math class I suppose.
Thanks
If you add static methods to the class, you can call them like this
ClassName::staticMethod();
You are not stopped from also creating instances of this class.