#include
class part
{
private:
int partnumber;
int modelnumber;
float cost;
public:
void setpart(int m,int p,float c)
{
Modelnumber = m;
partnumber = p;
cost = c;
}
void showpart();
};
void part :: showpart()
{
cout<<"model:"<
cout<<"\n"<<"part:"<
cout<<"\n"<<"cost:"<
}
void main()
{
part piston; //object
created
piston.setpart(101,207,210.50);
piston.showpart();
}