BIT401 Advanced Java Programming

Advanced Java ProgrammingTU Board 2080

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…

10

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.

A worked answer is on its wayMeanwhile, read the Advanced Java Programming notes for this topic.

Discussion

Loading…

More Advanced Java Programming questions

All Advanced Java Programming old questions