I\'m still quite new to coding in general, and while this simple program is only meant to be a test to learn how constructors work, I\'d still like to know why I\'m getting
This is not caused by the constructor. You get the error because the field methodTest.b is private (in C#, fields are private by default; you need to specify an explicit modifier, so something like public int b;).