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…
10Why 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
Discuss about any four servlet APIs. Design a form in JSP to take the necessary information about an employee and when the user click submit button, it will…TU Board 208110When do we use JPanel? How do you add mnemonics and accelerators to menu items? Explain.TU Board 208110How do you create inner class and anonymous inner class? Create a class EMPLOYEE with data members Emp ID, Name and Occupation, and write those objects to the…TU Board 208110Describe about any three types of JavaFX layouts.TU Board 20815Write a program to design a form with a button and label, such that the number of times the button is clicked will be displayed in label.TU Board 20815Explain the architecture of RMI.TU Board 20815