C++
// header/declaration
using namespace std;
class myClass
{
void print(); ;
myClass();
int Value;
};
// implementation
#include #include “myClassheader.h”using namespace std;myClass::myClass(){ Value = 0;}void myClass::print(){ cout < “value="“">< value=""><>}// client code#include #include “myClassheader.h”using namespace std;int main () {myClass myObject;myObject.print();}
#include “myClassheader.h”
myClass::myClass()
Value = 0;
}
void myClass::print()
cout < “value="“">< value=""><>
// client code
#include #include “myClassheader.h”using namespace std;int main () {myClass myObject;myObject.print();}
int main () {
myClass myObject;
myObject.print();
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here