5: Consider the following class declaration.
public class VetRecord
{
private String name;
private int age;
private int weight;
private boolean needsVaccine;
public VetRecord(String nameP, int ageP, int weightP,
boolean needsVaccineP)
{
name = nameP;
age = ageP;
weight = weightP;
needsVaccine = needsVaccineP;
}
public VetRecord(String nameP, int ageP, int weightP)
{
name = nameP;
age = ageP;
weight = weightP;
needsVaccine = true;
}
}
A new constructor is to be added to the VetRecord class. Which of the following is NOT a possible header for the new constructor?
A VetRecord (int agep, int weightP);
B: VetRecord (int ageP, boolean needsVaccine);
C: VetRecord (String namep, int agep);
D: VetRecord (String namep, boolean needsVaccine);
E: VetRecord (String namep, int weightp, int agep);