« first day (3515 days earlier)      last day (1416 days later) » 

5:19 AM
Today I went bushwalking with a small group & met a crab:
 
 
7 hours later…
12:23 PM
@TelKitty In C Sharp, fields are private by default. I tested this. Where did you hear that struct members are public by default in C Sharp?
 
Who was talking about C#?
 
@PeterT I asked about the difference between structs and classes.
 
I guess from the context of this chat room having "C++" in the name I assume most people thought you were talking about C++
 
I was told that structs and classes are pretty much the same.
May 26 at 12:23, by fredoverflow
struct and class are almost the same in C++.
May 26 at 12:23, by fredoverflow
They merely differ in visibility defaults.
 
Yes all that is right, still not sure where C# comes in here
 
12:28 PM
May 26 at 12:22, by MyWrathAcademia
Does a struct in c++ work the same as a struct in C#?
 
Ok and what made you think the comment you linked was answering that question?
 
I guess that comment doesn't answer my question and instead just says that structs and classes in C++ would be identical if it wasn't for visibility defaults of members.
It seems that structs and classes in C Sharp would be identical if it wasn't for the fact that in structs you have to explicitly assign a value to each field or auto-property in any constructor, you can't just leave them to their default values like you can with classes 1 2.
 
The main difference would be this:

https://chat.stackoverflow.com/transcript/message/49472807#49472807
 
12:43 PM
@PeterT Thanks.
 

« first day (3515 days earlier)      last day (1416 days later) »