#include<iostream>
#include<string>
using namespace std;

#if 0
// Inside Example
class car{
    public:
        void name(){
            cout<<"This is volvo car";
        }
};

int main(){
    car volvo;
    volvo.name();
}
#endif

//Outside Example
class car{
    public:
        void name(int no);
};

void car::name(int no){
            cout<<"This is volvo car "<<no;
        }

int main(){
    car volvo;
    volvo.name(200);
}

Embed on website

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