---
title: "Discussion on \"Constructors & Inheritance:\" | Hashnode"
description: "Discussion on \"Constructors & Inheritance:\". By default,\nthe parent class's default constructor—which doesn't take any parameters—is invoked anytime the constructor of a subclass is called.\nEG:\nclass parent{\n    parent(){\n        System.out.println(\"parent\");\n    }\n}\npublic class inheri extends..."
url: "https://hashnode.com/posts/constructors-inheritance/63ab0dcb8c3d70a469760dbf"
---

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

Discussion

# [Constructors & Inheritance:](https://codingscapes.hashnode.dev/constructors-inheritance?utm_source=hashnode&utm_medium=feed)

By default, the parent class's default constructor—which doesn't take any parameters—is invoked anytime the constructor of a subclass is called. EG: class parent{ parent(){ System.out.println("parent"); } } public class inheri extends...

Dec 27, 2022 · 1 min read · codingscapes.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#inheritance](https://hashnode.com/tag/inheritance)
-   [#constructor](https://hashnode.com/tag/constructor)
-   [#object-oriented-programming](https://hashnode.com/tag/object-oriented-programming)
-   [#oops](https://hashnode.com/tag/oops)

## Written by

[SKV](https://hashnode.com/@SKValli)

@SKValli

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

Student

## Responses

Comments are turned off for this post.
