Solved

Public Abstract Class Car

Question 25

Essay

public abstract class Car
{
    private String model;
    public abstract void color();
    public String getName()
    {
        return model;
     }
     public void setName(String carModel)
     {
        model = carModel;
      }
}
Using the code above, would it be possible to create a class in which you declare a Car object with the statement Car myCar = new Car("Honda"); ?
Explain why or why not.

Correct Answer:

verifed

Verified

The Car class in this example is declare...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions