Question: Which of the following Java code segments implements the relationship between the classes Shape and Triangle shown above? Group of answer choices public class Shape
Which of the following Java code segments implements the relationship between the classes Shape and Triangle shown above? Group of answer choices public class Shape inherits Triangle { } public class Shape implements Triangle { } Public class Triangle extends Shape { } Public class Shape : Triangle { }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
