#include<iostream>

using namespace std;


class Myclass{
      public:
            string String1;
            string String2;
};

class MyIntro{
      public:
            string S1;
            string S2;
            string S3;
};

int main(){
    // object

    Myclass v1;

    v1.String1 = "bmw";
    v1.String2 = "hyundai";

    cout<<v1.String1<<"\n";
    cout<<v1.String2<<"\n";

    //Second Object

    MyIntro N2;

    N2.S1 = "Anup Tirkey";
    N2.S2 = "Mechanical Engineer";
    N2.S3 =  "NIT";

    cout<<N2.S1<<"\n";
    cout<<N2.S2<<"\n";
    cout<<N2.S3<<"\n";

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: