Java returns error “Cannot instantiate the type”

Car is an Abstract class you cannot create an instance of it.

public abstract class Car implements Automobile

you can potentially do something like

public class FordFocus extends Car 

keep in mind that you will need to call the super constructor, but then you will be able to create an instance of the FordFocus car type

Leave a Comment