error: cannot find symbol this.owner = new owner(ownername, telephonenumber);
public class Car extends Vehicle{
private String body;
private String type;
private int ccRating;
protected static Owner owner;
public Car(String body, String type, int ccRating)
{
super (ownername, telephonenumber, chassisNum, color, estimatedVal, year);
this.owner = new owner(ownername, telephonenumber);
this.body = body;
this.type = type;
this.ccRating = ccRating;
}
}
I have a Owner class created that has the owner name and telephone number, so I want to get just the ownername and the telephonenumber from that class. but when I try doing it like that. I am getting that error.