Impact of Gen-AI on IT Jobs - Growth Mindset Show
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
15
Reply
What is type of constructor?
Sandeep Kumar
9y
1.3k
1
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
If a constructor is explicitly declared by using Static modifiers it's Static Constructor otherwise others are Instance Only
Sandeep Singh
9y
1
Need more clarification on question. Are you asking Types of constructor or type of constructor.if we are saying what are different types of constructor then answer would be static and Instance constructor. Instance constructor can be further classified into Default ConstructorParameterized ConstructorCopy ConstructorPrivate Constructor If we are asking about type of a constructor. then answer would be constructor dont have a type/return type.
Anil Kumar Murmu
9y
1
Static Constructor Instance Constructor
Joe Wilson
9y
1
There is 2 type of constrctor. 1.Instance constructor 2.non instance constructor
Sandeep Kumar
9y
1
1.default constructor 2.perameteralize consctructor
Hiren Parmar
9y
0
Default constructor same as name of class and parameterised constructor.
Vishal Jadav
9y
0
Instance constructor [Multiple Instances] & Non instance constructor
Bhuvanesh Mohankumar
9y
0
1.Instance constructor 2.Non instance constructor
Vivek Kumar
9y
0
5 Types of constructor are there 1)Default 2)Parameterised 3)Private Constructor 4)Copy Constructor 5)Static Constructor.
Rajeev Punhani
9y
0
Static Constructor Instance Constructor
Kml Surani
9y
0
Basically there are five types of constructor are available in c#. 1) Default constructor 2) Parameter constructor 3) Copy constructor 4) Static constructor 5) Private constructor
sushil kumar
9y
0
check this http://www.c-sharpcorner.com/UploadFile/0c1bb2/constructors-and-its-types-in-C-Sharp/
Ravi Patel
9y
0
Static Constructor Instance Constructor
Joe Wilson
9y
0
constructor are two types1. Instance Constructor This will fire when any object will be created. It can be parameter or parameterized constructor. 2. Static Constructor This will be fire first time when any member of class will be accessed. Like before object creation or static method call.
Dhanik Sahni
9y
0
Types of ConstructorsBasically constructors are 5 types those are1. Default Constructor2. Parameterized Constructor3. Copy Constructor4. Static Constructor5. Private Constructor Plz refer this link for detail. http://www.c-sharpcorner.com/UploadFile/0c1bb2/constructors-and-its-types-in-C-Sharp/ http://www.aspdotnet-suresh.com/2013/09/csharp-constructor-example-types-of-constructor-in-csharp.html
Rajesh Singh
9y
0
What is difference between collection and array?
Msil stands for what ?
Message