© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•5mo ago•
31 replies
Leodes

Can someone give me a explanation of a Constructor?

So I was under the impression in order to make a new data type you needed to use a constructor, but I just watched a video that showed that as long as you had the public class variables set up, then you have created the data type. So could someone help explain the difference between these two and the best case uses for doing one over the other or like if you should do one of them since the other is bad scripting.
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Explanation of the Value parameter in Class constructor
C#CC# / help
3y ago
can someone help me:(
C#CC# / help
2y ago
can someone give me an example of what “return” does and how to use it?
C#CC# / help
3y ago
can someone explain me Bubblesort
C#CC# / help
3y ago