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
What is trim in c#?
What is garbage collector and where should you use in .NET?
Why is static constructor called first?
Why is it called c sharp?
How do partial classes work in c#?
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used
Can class be protected in c#?
What are c# attributes and its significance?
What's the difference between a method and a procedure?
What is delegates and events?
What is a constructor in c#?
Can you instantiate a struct without using a new operator in c#?
What is the difference between abstract class and interface in c#?
What is c# used for in the industry?
Define a jagged array in c#?