DEV Community

loading...

Discussion on: Effective Java! Prefer Class Hierarchies to Tagged Classes

Collapse
robole profile image
Rob OLeary

In Figure, maybe you meant to declare the method as area()?

Collapse
kylec32 profile image
Kyle Carter Author

You are indeed correct, thank you for calling that out.