---
title: "Discussion on \"Enum vs Sealed Classes\" | Hashnode"
description: "Discussion on \"Enum vs Sealed Classes\". This article explain the difference between enum and sealed classes and explain how enum can be differentiated and why we use enum and sealed classes."
url: "https://hashnode.com/posts/enum-vs-sealed-classes/63594950fb2917c8cf96edc6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Enum vs Sealed Classes](https://krishparekh.hashnode.dev/enum-vs-sealed-classes?utm_source=hashnode&utm_medium=feed)

This article explain the difference between enum and sealed classes and explain how enum can be differentiated and why we use enum and sealed classes.

Oct 26, 2022 · 6 min read · krishparekh.hashnode.dev  
Updated Oct 14  
Read the article

-   [#sealed-class](https://hashnode.com/tag/sealed-class)
-   [#enum](https://hashnode.com/tag/enum)
-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#kotlin-beginner](https://hashnode.com/tag/kotlin-beginner)
-   [#android](https://hashnode.com/tag/android)

## Written by

[Krish Parekh](https://hashnode.com/@KrishParekh)

@KrishParekh · Melbourne, Australia

  
[View profile](https://hashnode.com/@KrishParekh)

AI Engineer at SMEC AI · RAG, agents and voice AI

I build RAG systems, multi-agent applications and voice agents, along with the APIs and cloud infrastructure behind them. Right now that means production voice agents and ad-creative pipelines for Australian businesses. My work spans Python, FastAPI, Amazon Bedrock and Terraform, alongside Next.js and TypeScript. I write Depth First, a newsletter on production AI engineering: guardrails, evaluation, LLM gateways and retrieval.

## Responses 7

Markdown supported · ⌘↵ to post

[A](https://hashnode.com/@Cringe)

[Oct 28, 2022](https://hashnode.com/posts/enum-vs-sealed-classes/63594950fb2917c8cf96edc6/comment/635b52895221d3274830fd2d)

Nicely explained! Keep it up buddy! 👏🏼

[Saloni Mehta](https://hashnode.com/@Saloni19)

[Oct 27, 2022](https://hashnode.com/posts/enum-vs-sealed-classes/63594950fb2917c8cf96edc6/comment/6359f2ef01e68714e48418d9)

Good explanation 👍

[Neha Vishwakarma](https://hashnode.com/@nehav)

[Oct 26, 2022](https://hashnode.com/posts/enum-vs-sealed-classes/63594950fb2917c8cf96edc6/comment/635976546bf8ab0eb9833627)

👍🏻👍🏻

[Juhi Jha](https://hashnode.com/@Jjha)

[Oct 26, 2022](https://hashnode.com/posts/enum-vs-sealed-classes/63594950fb2917c8cf96edc6/comment/635956d0d129710e6df11809)

Nice work!!

[Anubhav Jain](https://hashnode.com/@anubhav671)

[Oct 26, 2022](https://hashnode.com/posts/enum-vs-sealed-classes/63594950fb2917c8cf96edc6/comment/635950c9d129710e6df11701)

Excellent explaination 👍👍👍👍👍👍👌👌👌👌👌

[Palak Varma](https://hashnode.com/@palak1220)

[Oct 26, 2022](https://hashnode.com/posts/enum-vs-sealed-classes/63594950fb2917c8cf96edc6/comment/635949d86bf8ab0eb983311f)

Great workkk❤️🙌🏻🙌🏻🙌🏻
