spring iot – tutorial part 1 – 4

package jtrainer.education.tutorial.spring.ioc;

public class Reservation {
    RentedCar rentedCar;
    public Reservation() {
        super();
    }
    public Reservation(RentedCar rentedCar) {
        super();
        this.rentedCar = rentedCar;
    }
    public RentedCar getRentedCar() {
        return rentedCar;
    }
    public void setRentedCar(RentedCar rentedCar) {
        this.rentedCar = rentedCar;
    }
}

public class RentedCar {
    String model="FIAT500";
    
    public String getModel() {
        return model;
    }
    public void setModel(String model) {
        this.model = model;
    }
}