C Sharp (C#) - Classes and Objects
Examine the code below:
What is the issue with using
class Sample {
public static int count = 10;
public void Display() {
Console.WriteLine(this.count);
}
}What is the issue with using
this.count inside the Display method?