Car sort problem using vector

Inside the main function of car sort problem,
for(int i=0;i<n;i++)
{
int x, y;
string name;
cin>>name>>x>>y;
Car temp(name,x,y);
v,.push(temp);
}
what is the purpose of writing Car temp(name,x,y)?
Is temp an object of Car Class ?

@Tiwary725hey ,hmne car class object bnayi hai uske andr teen variables ha name,x and y to ab hme ise use krne ke lie object bnana pdega car type ka jaise hm int type ka variable bnate hai ,to apne upar contructor bnaya hoga jo ye teeno cheezein as argument lega and initialise krega hmare car type ke object ko,so car temp(name,x,y) isme hmara car type ka object bn rha hai jiska naam temp hai and hm us object ko constructor ke through initialise krrhe hai by three arguments given in bracket ,ab apka temp object bna aur temp object ke name,x,y me woh cheexein hongi jisse apne initialise kra hai in brackets.Happy coding :slight_smile: