public class Car{
String carname;
String model;
String owner;
Integer year;
public void gets(String carname,String model, String owner, Integer year)
{
this.carname=carname;
this.model=model;
this.owner=owner;
this.year=year;
}
public void show()
{
System.debug("Car name : ",this.carname);
System.debug("Model name : ",this.model);
System.debug("Owner name : ",this.owner);
System.debug("Year name : ",this.year);
}
}
Car c1=new Car();
c1.gets("Ford Ecosport","Disel","Manan",2024);
c1.show();
cHVibGljIGNsYXNzIENhcnsKICAgIFN0cmluZyBjYXJuYW1lOwogICAgU3RyaW5nIG1vZGVsOwogICAgU3RyaW5nIG93bmVyOwoKICAgIEludGVnZXIgeWVhcjsKCgogICAgcHVibGljIHZvaWQgZ2V0cyhTdHJpbmcgY2FybmFtZSxTdHJpbmcgbW9kZWwsIFN0cmluZyBvd25lciwgSW50ZWdlciB5ZWFyKQogICAgewogICAgICAgIHRoaXMuY2FybmFtZT1jYXJuYW1lOwogICAgICAgIHRoaXMubW9kZWw9bW9kZWw7CiAgICAgICAgdGhpcy5vd25lcj1vd25lcjsKICAgICAgICB0aGlzLnllYXI9eWVhcjsKICAgIH0KCiAgICBwdWJsaWMgdm9pZCBzaG93KCkKICAgIHsKICAgICAgICBTeXN0ZW0uZGVidWcoIkNhciBuYW1lIDogIix0aGlzLmNhcm5hbWUpOwogICAgICAgIFN5c3RlbS5kZWJ1ZygiTW9kZWwgbmFtZSA6ICIsdGhpcy5tb2RlbCk7CiAgICAgICAgU3lzdGVtLmRlYnVnKCJPd25lciBuYW1lIDogIix0aGlzLm93bmVyKTsKICAgICAgICBTeXN0ZW0uZGVidWcoIlllYXIgbmFtZSA6ICIsdGhpcy55ZWFyKTsKICAgIH0KfQoKCkNhciBjMT1uZXcgQ2FyKCk7CmMxLmdldHMoIkZvcmQgRWNvc3BvcnQiLCJEaXNlbCIsIk1hbmFuIiwyMDI0KTsKYzEuc2hvdygpOw==