I'm having a problem using a class method or function without instantiating the class. I need to be able to use the functions and methods of a class avoiding to instantiate it.
Now I'm using something like:
(New ClassName).MyMethod()
But as I write two or three chained functions, it becomes impossible to understand:
(New ClassName).MyMethod1((New ClassName).MyMethod2())
I'd like to able to use something like:
ClassName.MyMethod(ClassName.MyMethod())
Does anyone knows a way of writing classes that allow this?
I know JAVA allows it.
NetAngel
Now I'm using something like:
(New ClassName).MyMethod()
But as I write two or three chained functions, it becomes impossible to understand:
(New ClassName).MyMethod1((New ClassName).MyMethod2())
I'd like to able to use something like:
ClassName.MyMethod(ClassName.MyMethod())
Does anyone knows a way of writing classes that allow this?
I know JAVA allows it.
NetAngel