Question: What can't be created directly from the class? abstract class Shape { String color; / / abstract method abstract double area ( ) ; public

What can't be created directly from the class? abstract class Shape {
String color;
// abstract method
abstract double area();
public abstract String toString();
// abstract class can have a constructor public Shape(String color){
System.out.printIn("Shape constructor called");
this.color = color;
}
// concrete method
public String getColor(){
return color;
}
}
An object
A variable
A constructor
A method
 What can't be created directly from the class? abstract class Shape

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!