Answer to Question #186917 in C++ for zaid

Question #186917

Create a class, having a static function printing some information and invoke that method using scope resolution operator.


1
Expert's answer
2021-04-28T17:33:48-0400
#include <iostream>
using namespace std;
class Print{
    public:
    static void print(){
        cout<<"Something";
    }
};
int main(){
    Print::print();
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS