Effective Java! Prefer Class Hierarchies to Tagged Classes

class Figure {
enum Shape {CIRCLE, RECTANGLE}

I'm a software architect that has a passion for software design and sharing with those around me

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How I tackle my software engineering projects at alx

Giving Data the SPA Treatment

How to check the Firebase logging

What’s New in Codesphere Version 1.8.0

21 Days of AWS using Terraform — Day 11- Introduction to S3 using Terraform

Phase 5 — Week 1

CS371g Spring 2022: Sang Pham

A Beginners Tutorial for OpenCV using Python

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kyle Carter

Kyle Carter

I'm a software architect that has a passion for software design and sharing with those around me

More from Medium

How To Implement Adapter Design Pattern Using Java?

Java Concurrency API

Coding Standards in Java

Effective Java: Write readObject Methods Defensively