Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename Miscellaneous/melon.java -> Miscellaneous/TalkativeMelon.java and correct remaining wrong class names #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Miscellaneous/march.java → Miscellaneous/March.java
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
6 changes: 3 additions & 3 deletions Miscellaneous/Revision/PeriodicalI/Vegetable.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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();
}
}