---
title: "How many types of constructors are in C# OOPs programming?"  
description: "How many types of constructors are in C# OOPs programming?"  
author: "Ravi Vishwakarma"  
published: 2021-08-23  
updated: 2021-08-23  
canonical: https://www.mindstick.com/forum/156694/how-many-types-of-constructors-are-in-c-sharp-oops-programming  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How many types of constructors are in C# OOPs programming?

How many types of constructors are in C# [OOPs programming](https://www.mindstick.com/forum/156693/how-many-types-of-classes-are-in-c-sharp-oops-programming)?

## Replies

### Reply by Ashutosh Kumar Verma

## Types of constructor-

There are generally 5 types of constructor are used in c# [programming](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming) language which are-

**1- Default constructor.**

class Demo

{

public Demo() //default constructor.

{ // statements }

}

**2- Copy constructor**.

class Test

{

public Test(Demo demo)// instance of other class

{ // statements }

}

**3- Parameterized constructor.**

class Test

{

public Tast(string name, int age)

{ // statements }

}

**4- Static constructor**.

class Test

{

static Test() // it is also works like default constructor but it execute only once.

{ // statements }

}

**5- Private constructor**.

class Test

{

private Test() // it can execute either same class Main() or if Main() in other class then need to define public in other method in same class to execute its statement

{ // statements }

}


---

Original Source: https://www.mindstick.com/forum/156694/how-many-types-of-constructors-are-in-c-sharp-oops-programming

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
