Please help me with the java problem
Please create mutator and accessor functions for the instance variable cars. Note: we want to maintain the security of the private member variable cars.
In other word, you may need to use deep copy concept to handle the accessor.
public class RentalCarCompany
{
/** Instance variable */
private Car[] cars;
// constructor
public RentalCarCompany() {
cars = new Car[10];
}
}