Can you please help? JAVA.
Create a Cycle class, with subclasses Unicycle, Bicycle, and Tricycle.
1. There is a wheels method in Cycle, which returns the number of wheels. Override the wheels method in each subclass.
2. Every subclass also has an additional method called dummy, which prints out the subclass's name. (Note: this method is not in the base class.)
Write a ride method in the Cycle class, which takes a Cycle and calls wheels. In the main() method, create instances of each type and put them into an array. Use a range-based for loop to iterate through each element of the array and call the ride and dummy methods.
5 points.