@@ -0,0 +1,496 @@
+import java.util.*;%0Aimport java.io.*;%0A%0Aclass BiCycle%7B%0A%09String define_me()%7B%0A%09%09return %22a vehicle with pedals.%22;%0A%09%7D%0A%7D%0A%0Aclass MotorCycle extends BiCycle%7B%0A%09String define_me()%7B%0A%09%09return %22a cycle with an engine.%22;%0A%09%7D%0A%0A%09MotorCycle()%7B%0A%09%09System.out.println(%22Hello I am a motorcycle, I am %22+ define_me());%0A%0A%0A%0A%09%09String temp=super.define_me();%0A%0A%09%09System.out.println(%22My ancestor is a cycle who is %22+ temp );%0A%09%7D%0A%0A%7D%0Aclass Solution%7B%0A%09public static void main(String %5B%5Dargs)%7B%0A%09%09MotorCycle M=new MotorCycle();%0A%09%7D%0A%7D%0A

Solve overring 2