Question: Given an abstract class Triangle with the abstract methods getShape ,calculatePerimeter and calculateArea.It follows the 3 classes Equilateral,Scalene and Isosceles extend class Triangle.A class TestShape
Given an abstract class Triangle with the abstract methods getShape ,calculatePerimeter and calculateArea.It follows the 3 classes Equilateral,Scalene and Isosceles extend class Triangle.A class TestShape exists which instantiates these classes.Write a java program that implements this[25marks]
b]Differentiate the following using code snippet
i]Abstract Class and Interface
ii]method and Constructor
iii]Static variable & instance variable
iiii]Overriding & overloading
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
