xxxxxxxxxx
#include<iostream>
using namespace std;
class codeWithRedoy{
public:
string MyName = "Md Fuadul Islam Redoy";
};
int main(){
codeWithRedoy obj;
cout << obj.MyName<<endl;
return 0;
}
xxxxxxxxxx
class person
{
char name[20];
int id;
public:
void getdetails(){}
};
int main()
{
person p1; // p1 is a object
}