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
Explain copy constructor?
What is jagged array in c#?
What is a class level variable in c#?
Explain what are three test cases you should go through in unit testing?
What is a private class in c#?
Can the nested class access, the containing class. Give an example?
Can you specify nested classes as partial classes?
How do you create user defined data types in c#?
Can we have static indexer in c#?
What are c# types?
What is the difference between do and while loop?
explain the nature of the assembly work?
What is difference between constants and read-only?
What is the delegate in c#?
Why we use get and set method in c#?