Object Class Etc

Dear Sir,

Could you please give an example: where to uses Object classes in real project. Like you have gave example form validation. can you please give some real world project example how to use this?

class Car {
constructor(name, year) {
this.name = name;
this.year = year;
}
}

const myCar = new Car(“Ford”, 2014);
document.getElementById(“demo”).innerHTML =
myCar.name + " " + myCar.year;