Essay
public abstract class Car
{
private String model;
public abstract void color();
public String getModel()
{
return model;
}
public void setModel(String modelName)
{
model = modelName;
}
}
The above code creates a generic abstract class named Car with an abstract color() method. Using the code below, fill in the indicated statements in order to create a Honda class that extends Car .
public class --Code here-- extends --Code here--
{
public void --Code here--
{
System.out.println("I like your red car!");
}
}
Correct Answer:
Verified
public class Honda extends Car...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Related Questions