Problem in class car?

in class car
1 . this-> ?

in main
1.car temp( , , ,) ?
2. we can alos write car.temp for making object .

@mehulbhandari358

  1. this keyword is used to refer to members of the class whose object is being called. When we are inside the class, we can’t do car.val, so we can use this.val instead.
  2. we are making an object of type car by writing car temp(…)
  3. no we cannot write car.temp for making object. dot operator is used to refer to the members of the class.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.