In C++ how may I write a function that is being called using the class name?
for example if I have a class called test I want to call a function called calc like this:
test::calc();
and not via an object of the class.
In C++ how may I write a function that is being called using the class name?
for example if I have a class called test I want to call a function called calc like this:
test::calc();
and not via an object of the class.