diff --git a/Miscellaneous/march.java b/Miscellaneous/March.java similarity index 71% rename from Miscellaneous/march.java rename to Miscellaneous/March.java index 98bac96..58f8eb0 100644 --- a/Miscellaneous/march.java +++ b/Miscellaneous/March.java @@ -1,25 +1,25 @@ -class may { +class May { void month(){ System.out.println("This is the month of May."); } } -class june extends may { +class June extends May { void month(){ System.out.println("This is the month of June."); } } -class march extends may{ +class March extends May{ void month(){ System.out.println("This is the month of March."); } public static void main(String[] args){ - may m = new may(); - may n = new june(); - may u = new march(); + May m = new May(); + May n = new June(); + May u = new March(); m.month(); n.month(); u.month(); diff --git a/Miscellaneous/Revision/PeriodicalI/Vegetable.java b/Miscellaneous/Revision/PeriodicalI/Vegetable.java index 321a71c..8fa19fe 100644 --- a/Miscellaneous/Revision/PeriodicalI/Vegetable.java +++ b/Miscellaneous/Revision/PeriodicalI/Vegetable.java @@ -1,14 +1,14 @@ -class max { +class Max { String vName; double price; - max(String vName, double price){ + Max(String vName, double price){ this.vName = vName; this.price = price; } } -class Vegetable extends max { +class Vegetable extends Max { String month; String season; diff --git a/Miscellaneous/melon.java b/Miscellaneous/TalkativeMelon.java similarity index 68% rename from Miscellaneous/melon.java rename to Miscellaneous/TalkativeMelon.java index 0f51676..d1f9cfe 100644 --- a/Miscellaneous/melon.java +++ b/Miscellaneous/TalkativeMelon.java @@ -1,16 +1,16 @@ -class water { +class Water { void talk(){ System.out.println("This is how I look like I talk."); } } -class melon extends water { +class TalkativeMelon extends Water { void talk(){ System.out.println("Meow"); } public static void main(String[] args){ - melon a = new melon(); + TalkativeMelon a = new TalkativeMelon(); a.talk(); } } \ No newline at end of file