Create a class, having a static function printing some information and invoke that method using scope resolution operator.
#include <iostream>
using namespace std;
class Print{
public:
static void print(){
cout<<"Something";
}
};
int main(){
Print::print();
return 0;
}
Comments
Leave a comment