Skip to content

Commit

Permalink
updated 1 solution
Browse files Browse the repository at this point in the history
  • Loading branch information
RodneyShag committed Sep 29, 2018
1 parent 0d0ee97 commit c1fd679
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Java/Advanced/Covariant Return Types/Solution.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@ String whatsYourName() {
}
}

class State {
class Region {
Flower yourNationalFlower() {
return new Flower();
}
}

class WestBengal extends State {
class WestBengal extends Region {
@Override
Jasmine yourNationalFlower() {
return new Jasmine();
}
}

class Karnataka extends State {
class Karnataka extends Region {
@Override
Lotus yourNationalFlower() {
return new Lotus();
}
}

class AndhraPradesh extends State {
class AndhraPradesh extends Region {
@Override
Lily yourNationalFlower() {
return new Lily();
Expand Down

0 comments on commit c1fd679

Please sign in to comment.