Which should display the policy number


Complete the InsurancePolicy class to represent an insurance policy. This class needs to have a Set which will contain the particular CoverType objects that represent the insurance cover desired by the customer. Methods you need to write/complete are:

public void lodgeAnotherClaim(CoverType lodgedType)
{
// Student must complete
}

// Method: toString
// Purpose: Display a textual summary of this object's state
@Override public String toString()
{
// Student must complete

return "Something";
}

lodgeAnotherClaim (CoverType) - which should increase a counter that keeps track of how many times the person makes a claim against this policy. The parameter specifies which type of cover the claim is being lodged for. If the policy does not include that type of cover, then the counter is not increased. • toString - which should display the policy number, and list the types of cover included in the policy, as well as the total number of claims made so far. You should make use of an Iterator to show all the types of cover 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Which should display the policy number
Reference No:- TGS0120830

Expected delivery within 24 Hours