Hey i'm creating an insurance application in Netbeans and the class containing the clients details looks like this
package insurancecompany;
public class ClientDetails {
private String clientID;
public Name clientName;
private Address clientAddress;
private PolicyList clientPolicies;
public ClientDetails(String ClientID, Name clientName, Address clientAddress, PolicyList clientPolicies)
{
this.clientID = id;
this.clientName = name;
this.clientAddress = address;
this.clientPolicies = policies;
}
public String getID()
{
return id;
}
public Name getName()
{
return name;
}
public Address getAddress()
{
return address;
}
public Policies getPolicies()
{
return policies;
}
public String toString(){
return "\tID: " + id + ";\t" + "name: " + name + ";\t" + "address: " + address + ";\t" + "policies: " + policies + "";
}
}
:
I am however getting errors being flagged up for every line except private String clientID.
The error says "cannot find symbol"
Can anyone shed any light on the problem?
Cheers