3]. Competitive Programming/03]. HackerRank/1]. Practice/04]. Java/5]. Object Oriented Programming/_06)_Java_Method_Overriding_2_SuperKeyword.java
/**
 * https://www.hackerrank.com/challenges/java-method-overriding-2-super-keyword
 */
 
/**
 * @author Mayur Ingle(https://github.com/thecoder8890)
 *
 */

class BiCycle {
	String define_me() {
		return "a vehicle with pedals.";
	}
}

class MotorCycle extends BiCycle {
	String define_me() {
		return "a cycle with an engine.";
	}

	MotorCycle() {
		System.out.println("Hello I am a motorcycle, I am " + define_me());
		String temp = super.define_me(); // Fix this line
		System.out.println("My ancestor is a cycle who is " + temp);
	}

}

public class JavaMethodOverriding2SuperKeyword {
	public static void main(String[] args) {
	 new MotorCycle();
	}
}
