Logo

Why do we need interface? Define an interface named shape with area ( ) method. Create a class named Rectangle with length and breadth circle with…

BIT Advanced Java Programming · 2080 · Solved Question with Answer

Why do we need interface? Define an interface named shape with area ( ) method. Create a class named Rectangle with length and breadth circle with radius that implements shape interface. Now create the object of both classes and display their area.

Solution

Please login to view the answer.