---
title: "Discussion on \"Abstract Classes in Java Explained with Examples\" | Hashnode"
description: "Discussion on \"Abstract Classes in Java Explained with Examples\". Abstract classes are classes declared with abstract. They can be subclassed or extended, but cannot be instantiated. You can think of them as a class version of interfaces, or as an interface with actual code attached to the methods.\nFor example, say..."
url: "https://hashnode.com/posts/abstract-classes-in-java-explained-with-examples/66c3437cf9d371e3aae26815"
---

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

Discussion

# [Abstract Classes in Java Explained with Examples](https://freecodecamp.org/news/abstract-classes-in-java-explained-with-examples?utm_source=hashnode&utm_medium=feed)

Abstract classes are classes declared with abstract. They can be subclassed or extended, but cannot be instantiated. You can think of them as a class version of interfaces, or as an interface with actual code attached to the methods. For example, say...

Feb 1, 2020 · 2 min read · freecodecamp.org  
Read the article

-   [#class](https://hashnode.com/tag/class)
-   [#java](https://hashnode.com/tag/java)
-   [#object-oriented](https://hashnode.com/tag/object-oriented)
-   [#toothbrush](https://hashnode.com/tag/toothbrush)

## Written by

[freeCodeCamp](https://hashnode.com/@freeCodeCamp)

@freeCodeCamp · Just here on Earth... for now

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

Learn to code. Build projects. Earn certifications—All for free.

Learn to code. Build projects. Earn certifications—All for free.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
