public, static & friends
Posted: Sat Feb 09, 2008 9:19 am
Hi there,
Just a couple of questions:
1) How do I declare public members? The only way I found to access directly class variables is by creating properties...
2) In c#, if I declare a method as static, then I would simply use it by prepending the name of the class ( classname.method() ).
However, in Cobra I cannot use this method if I don't instantiate the class first. Why?
neuruss
Just a couple of questions:
1) How do I declare public members? The only way I found to access directly class variables is by creating properties...
2) In c#, if I declare a method as static, then I would simply use it by prepending the name of the class ( classname.method() ).
However, in Cobra I cannot use this method if I don't instantiate the class first. Why?
neuruss