#include<iostream>
#include<string>
using namespace std;
class Refine{
public :
string property;
string color;
int value;
};
class Car{
public :
string model;
string color;
int price;
};
class Plane{
public :
string model1;
string color;
int value;
};
void Function(){
cout<<"Anup Tirkey.\n";
cout<<"Mechanical ENgineer.\n";
cout<<"NIT.\n";
}
int main(){
//obj of oil
Refine refObj;
refObj.property = "coconut oil";
refObj.color = "3 color";
refObj.value = 750;
cout<<refObj.property<< ""<<refObj.color<< ""<<refObj.value<<"\n";
// obj of car
Car carObj;
carObj.model = "Hyundai 300";
carObj.color = "polargrey";
carObj.price = 800000;
cout<<carObj.model<< " "<<carObj.color<< " "<<carObj.price<<"\n";
// obj of plane
Plane pObj;
pObj.model1 = "sukhoi";
pObj.color = "greyblack";
pObj.value = 50000000;
cout<<pObj.model1<<" "<<pObj.color<< " "<<pObj.value<< "\n";
//obj of Plane2
Plane pObj1;
pObj1.model1 = "f-18";
pObj1.color = "black";
pObj1.value = 78000000;
cout<<pObj1.model1<< " "<< pObj1.color<< " "<<pObj1.value<<"\n";
Function();
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: