---
title: "Discussion on \"Avoid using default constructor.\" | Hashnode"
description: "Discussion on \"Avoid using default constructor.\". In C#, a default constructor (a constructor with no parameters) is silently added by the compiler when there is no explicit constructor available in a class. All the fields of the object will be set to their default values when a default constructor ..."
url: "https://hashnode.com/posts/avoid-using-default-constructor/65802ceed1b95f02b6fc0df7"
---

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

Discussion

# [Avoid using default constructor.](https://blog.thedevperspective.com/avoid-using-default-constructor?utm_source=hashnode&utm_medium=feed)

In C#, a default constructor (a constructor with no parameters) is silently added by the compiler when there is no explicit constructor available in a class. All the fields of the object will be set to their default values when a default constructor ...

Dec 18, 2023 · 2 min read · blog.thedevperspective.com  
Read the article

-   [#constructor](https://hashnode.com/tag/constructor)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Gireesh Kapila](https://hashnode.com/@GireeshKapila)

@GireeshKapila

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

The Dev Perspective!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
