<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/object-oriented-thinking-part-two-elcsn1jut" -->

---
title: Object-Oriented Thinking Part Two | daily.dev
description: A beginner-friendly introduction to OOP inheritance and polymorphism using Java. Covers class hierarchies, parent/child class relationships, the 'extends'...
canonical: https://daily.dev/posts/object-oriented-thinking-part-two-elcsn1jut
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Object-Oriented Thinking Part Two | daily.dev
og:description: A beginner-friendly introduction to OOP inheritance and polymorphism using Java. Covers class hierarchies, parent/child class relationships, the 'extends'...
og:url: https://daily.dev/posts/object-oriented-thinking-part-two-elcsn1jut
og:image: https://api.daily.dev/og/posts/ELCsn1Jut.png
og:image:alt: Object-Oriented Thinking Part Two
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Object-Oriented Thinking Part Two

**[Beej's Blog](https://daily.dev/sources/beej)** · 9 min read · 0 upvotes · 0 comments

## Summary

A beginner-friendly introduction to OOP inheritance and polymorphism using Java. Covers class hierarchies, parent/child class relationships, the 'extends' keyword, calling superclass constructors with 'super()', and method overriding. Demonstrates how polymorphism allows an array of base-class references to dispatch the correct overridden method at runtime, using an Animal/Armadillo example throughout.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <http://beej.us/blog/data/object-oriented-programming-2/>

## Similar posts on daily.dev

- [Fifty Shades of OOP](https://daily.dev/posts/fifty-shades-of-oop-o9n8jaztw) · Lobsters · 1 upvotes · 0 comments
- [What Is Object-Oriented Programming \(OOP\)? A Beginner-Friendly Guide with Real-Life Examples](https://daily.dev/posts/what-is-object-oriented-programming-oop-a-beginner-friendly-guide-with-real-life-examples-oe65810rz) · Medium · 0 upvotes · 0 comments
- [The Object Class in Java](https://daily.dev/posts/the-object-class-in-java-epliabj8s) · Baeldung · 3 upvotes · 0 comments
- [Learn Python object-oriented programming with Raymond Hettinger](https://daily.dev/posts/learn-python-object-oriented-programming-with-raymond-hettinger-zbj9yplbb) · Planet Python · 1 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#java](https://daily.dev/tags/java)

[View this post on daily.dev](https://daily.dev/posts/object-oriented-thinking-part-two-elcsn1jut)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Object-Oriented Thinking Part Two","url":"https://daily.dev/posts/object-oriented-thinking-part-two-elcsn1jut","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/object-oriented-thinking-part-two-elcsn1jut"},"datePublished":"2026-03-31T12:28:13.036Z","dateModified":"2026-03-31T12:41:21.651Z","description":"A beginner-friendly introduction to OOP inheritance and polymorphism using Java. Covers class hierarchies, parent/child class relationships, the 'extends'...","image":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","thumbnailUrl":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","isAccessibleForFree":true,"articleSection":"Beej's Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Beej's Blog","logo":"https://media.daily.dev/image/upload/logos/placeholder.jpg","url":"https://daily.dev/sources/beej"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/object-oriented-thinking-part-two-elcsn1jut","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,java","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Beej's Blog","item":"https://daily.dev/sources/beej"},{"@type":"ListItem","position":3,"name":"Object-Oriented Thinking Part Two"}]}
```

