#include<iostream>
#include<string>
using namespace std;
class MyClass{
public:
int myNum;
string myString;
};
int main(){
MyClass myObj;
myObj.myNum = 57;
myObj.myString = " Anup Tirkey is a Mechanical Engineer ";
cout<<myObj.myNum<<"\n";
cout<<myObj.myString<<"\n";
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: