C Sharp (C#) - Classes and Objects
Which of the following is the correct way to use
this to refer to a class field when a method parameter has the same name?this to refer to a class field when a method parameter has the same name?name hides the class field name.this to refer to the fieldthis.name = name; assigns the parameter value to the class field.this to access fields with same name [OK]this.field to avoid name conflicts [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions