Merge pull request #10242 from stancalau/BAEL-4218

Bael 4218
This commit is contained in:
bfontana 2020-11-18 21:38:27 -03:00 committed by GitHub
commit f2aabf4de1
2 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
package com.baeldung.exceptions.classcastexception; package com.baeldung.exceptions.classcastexception;
public class Reptile implements Animal { public class Amphibian implements Animal {
@Override @Override
public String getName() { public String getName() {
return "Reptile"; return "Amphibian";
} }
} }

View File

@ -1,6 +1,6 @@
package com.baeldung.exceptions.classcastexception; package com.baeldung.exceptions.classcastexception;
public class Frog extends Reptile { public class Frog extends Amphibian {
@Override @Override
public String getName() { public String getName() {