mcqs bucket

  • MCQs Bucket | Program Simple class and object creating program in C++

    mcqsbucket

      Best guide for exams of all nature, Competitive exams and Interviews

Simple class and object creating program in C++

	 
                                 		

#include < iostream >
using namespace std;
class Hello {    
 public: void sayHello()
{ cout << "Hello World" << endl;
}
};
int main()
{
Hello h; h.sayHello();
return 0;
}