class assignment error with abstract polymorphism and inheritance
public class LawClient extends Client
{
boolean defendant;
String caseTopic;
LawClient (String n, boolean d)
{
name = n;
defendant = d;
}
LawClient (String n, boolean d, String c, String e)
{
name = n;
defendant = d;
caseTopic = c;
email = e;
}
public String determineStatus()
{
if(caseTopic == null)
{
return "none";
}
else
{
String s = "";
s += "defendant: " + defendant +"\n" + "CaseTopic: " + caseTopic;
return s;
}
}
}
i get 2 errors for no sutable constructor for the lawclient constructors
but don't know what i did wrong or how to fix it .if you need the super
class it is already finished so i can post it if needed
No comments:
Post a Comment