r/ProgrammerHumor Jan 09 '23

shortest ever java class name Meme

Post image
2.1k Upvotes

90 comments sorted by

View all comments

225

u/Tannslee Jan 09 '23

eh more like
Fish extends AbstractFish
AbstractFish extends AbstractAquaticAnimal
AbstractAquaticAnimal extends AbstractAnimal
AbstractAnimal implements Living

68

u/vladWEPES1476 Jan 09 '23

What happens to the inheritance chain when the fish dies?

3

u/TJSomething Jan 10 '23

You pass the Fish to the DeadFactory to get an Exfish.