expected unqualified id before public error my code is below
#include<iostream>
using namespace std;
public Class hello{
private: int n;
public : Hello() // creating a constructor
{
cout<<"object created"<<endl;
}
};
int main(){
hello x, y, z; // creating 3 objects
return 0;
}
code in dev++