---
title: "Discussion on \"Is a Square a Rectangle? What Liskov Taught Me About Inheritance in C#\" | Hashnode"
description: "Discussion on \"Is a Square a Rectangle? What Liskov Taught Me About Inheritance in C#\". I'll be honest: when my C# project asked me to make Square inherit from Rectangle, I didn't think twice. A square is a rectangle. We all learned that in primary school. So I wrote class Square : Recta"
url: "https://hashnode.com/posts/is-a-square-a-rectangle-what-liskov-taught-me-about-inheritance-in-c/6b0afd47b0996b1e4f2e3ff9"
---

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

Discussion

# [Is a Square a Rectangle? What Liskov Taught Me About Inheritance in C#](https://hackeuc.hashnode.dev/is-a-square-a-rectangle-what-liskov-taught-me-about-inheritance-in-c?utm_source=hashnode&utm_medium=feed)

I'll be honest: when my C# project asked me to make Square inherit from Rectangle, I didn't think twice. A square is a rectangle. We all learned that in primary school. So I wrote class Square : Recta

5d ago · 7 min read · hackeuc.hashnode.dev  
Read the article

## Written by

[Uchechukwu Ezeibe](https://hashnode.com/@EucTech)

@EucTech · Nigeria

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

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
