can we declare a variable by name "this" in a class? Please
explain?
Answer Posted / bindu sharma
No,we cannot declare a variable by name "this" because it
is a keyword.but we can use any keyword as identifiers only
when they are prefaced by the @character.
| Is This Answer Correct ? | 29 Yes | 1 No |
Post New Answer View All Answers
How can you sort strings in array that are passed to method as arguments?
What is mvc pattern in c#?
Explain the different ways a method can be overloaded?
What is use of list in c#?
What is method and function in c#?
What is int tryparse in c#?
How do I link two windows forms in c#?
How does aspect oriented programming work?
What happens if you add duplicate elements to a set?
What is concrete class in c#?
List down the commonly used types of exceptions in .net
What is difference between array and collection in c#?
What is whitespace in c#?
What is the default value of date?
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?