Added 25 solutions

This commit is contained in:
rshaghoulian
2017-02-24 00:24:47 -06:00
parent 05ce4b1476
commit af8c2969a4
50 changed files with 1562 additions and 277 deletions
@@ -0,0 +1,30 @@
// Author: Rodney Shaghoulian
// Github: github.com/rshaghoulian
// HackerRank: hackerrank.com/rshaghoulian
import java.util.*;
import java.io.*;
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();
System.out.println("My ancestor is a cycle who is " + temp);
}
}
class Solution {
public static void main(String [] args) {
MotorCycle M = new MotorCycle();
}
}