can we declare a variable by name "this" in a class? Please
explain?

Answers were Sorted based on User's Feedback



can we declare a variable by name "this" in a class? Please explain?..

Answer / 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

can we declare a variable by name "this" in a class? Please explain?..

Answer / rajat

No you cannot

Is This Answer Correct ?    13 Yes 0 No

can we declare a variable by name "this" in a class? Please explain?..

Answer / murugavel

No we can't. Because its a keyword.

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More C Sharp Interview Questions

In how many ways you can overload a method?

0 Answers   Siebel,


How does a while loop work?

0 Answers  


hi my question is about understanding a text the user entered to a site , so i want to analyse that text looking for some specific items such as "honda" "shoffere" etc.. so if this site could help or could tell me where to go with such question ,i wonder. thanks

0 Answers  


What is default class in c#?

0 Answers  


What?s a satellite assembly?

1 Answers  


Is c# good for games?

0 Answers  


What are the properties in c#?

0 Answers  


What is the difference between a method and a property?

0 Answers  


example of uniary operators and binary operators

0 Answers  


What is executenonquery c#?

0 Answers  


What?s the difference between an interface and abstract class?

4 Answers  


What do you mean by winforms in c#?

0 Answers  


Categories