Question
Suppose there are rackets like Voltric, Nanoray, and Astrox, Each of the rackets has properties like shape (isometric or oval), stringTension (24 to 32), and
Suppose there are rackets like Voltric, Nanoray, and Astrox, Each of the rackets has properties like shape (isometric or oval), stringTension (24 to 32), and suitableForPlayers (amature, semi-professional, or professional).
Consider there is an interface named Rackets which is generic in nature. It has a method named as racketDetails() to display all the details of different rackets. Define a generic class Yonex to define the racketDetails() method of the generic interface. From main() method containing class named Sports, instantiate proper objects of the generic class and get the details of each of the rackets by invoking the racketDetails() method. If the racket is Nanoray then it should display its properties. You can show the properties of each type as per your wish.
Write code in java language.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started