Object Oriented Programming With JavaTU Board 2023
Create an interface "Shape" with a method void Myshape(String name). Create two class "Rectangle" and "Circle" to implement this method. Then instantiate object for each class to call…
5Create an interface "Shape" with a method void Myshape(String name). Create two class "Rectangle" and "Circle" to implement this method. Then instantiate object for each class to call Myshape(String) function.
A worked answer is on its wayMeanwhile, read the Object Oriented Programming With Java notes for this topic.
Discussion
Loading…