Inheritance not working
- by Pendo826
Hey im just practicing inheritance and i encountered a problem. Im getting an error in my car class(sub-class) that the variables in Vehicle(parent) are not visible. i didnt do anything to change this and i dont even know how to make it invisible. Can anyone help me with this.
public class Vehicle
{
private String make, model, colour;
…