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

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!