Java program to find area of rectangle triangle Interface
Java program to find the area of rectangle and triangle using Interface Write a Java program to define an interface called Area which contains a method called Compute() and calculate areas of the rectangle(I*b) and triangle(1/2*b*h) using classes Rectangle and Triangle. Video Tutorial: Step1: Create an interface in Java as shown below: public interface […]
Java program to find area of rectangle triangle Interface Read More »
