c++ Programming Glossary: mymath
Help with C++ static method http://stackoverflow.com/questions/1208853/help-with-c-static-method method in C like there is in Java I am doing this class MyMath public static MyObject calcSomething void private And I want.. void private And I want to do this int main MyObject o MyMath.calcSomething error happens here There are only static methods.. error happens here There are only static methods in the MyMath class so there's no point in instantiating it. But I get this..
Namespace + functions versus static methods on a class http://stackoverflow.com/questions/1434937/namespace-functions-versus-static-methods-on-a-class should I Write these functions and put them in my MyMath namespace and refer to them via MyMath XYZ Create a class called.. and put them in my MyMath namespace and refer to them via MyMath XYZ Create a class called MyMath and make these methods static.. and refer to them via MyMath XYZ Create a class called MyMath and make these methods static and refer to the similarly MyMath..
|