C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
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
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
5
Reply
what is virtual constructor?
Lalit Raghav
9y
10.3k
0
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
no, a class cannot have a virtual constructor.It doesn't make sense to have a virtual constructor. The order in which objects are constructed in C# is by constructing derived classes first, so the derived constructor is always called since the class you want to call is well known at the time of construction.
Sujeet Singh
8y
3
Constructors cannot be virtual. Declaring a constructor as a virtual function is a syntax error.
Vinay K
8y
1
Constructors cannot be virtual. Declaring a constructor as a virtual function is a syntax error.
Vinay K
8y
1
c# does contains virtual constructor.
sushil kumar
8y
0
Constructors cannot be virtual. Declaring a constructor as a virtual function is a syntax error.
Vinay K
8y
0
What is dynamic keyword ?
C# is strong type ?
Message