+ 1
How the 'ONE' variable is considered a property(as it is said in one of the module)? There is no accessor here.
class MathClass { public const int ONE = 1; } static void Main(string[] args) { Console.Write(MathClass.ONE); } //Outputs 1
3 odpowiedzi
+ 1
I think it would be more appropriate if we call it a constant 🤔
+ 1
I agree with you.
This is not a property. It is a field. To be complete a
const field.
A property has a get- or a set- method or both.
+ 1
Why you put C tag? C# and C is not the same, or even nearly related...