Question: Question 7 1 pts public abstract class Shape { public abstract int getNumberSides ( ) ; } public class Triangle extends Shape { public int

Question 71 pts
public abstract class Shape{
public abstract int getNumberSides();
}
public class Triangle extends Shape
{
public int getNumberSides()
{
return 3;
}
}
public class Square extends Shape
{
public int getNumberSides()
{
return 4;
}
}
Which of the following are correct?
Group of answer choices
We can create objects of type Shape.
We can create objects of type Square.
We can create objects of type Triangle.

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!