Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Is IIS is required for installing the deployment of windows C#.netapplication and to run.

2 Answers  


What is verbatim literal in c#?

0 Answers  


What is dependency injection in simple words?

0 Answers  


What is a virtual property. Give an example?

0 Answers  


What do you know about WM_CHAR message?

0 Answers   C DAC,


Can a struct be null?

0 Answers  


What are assemblies?

0 Answers   Microsoft,


Any exceptions are there which are not caught by any catch blocks? what are they?

5 Answers   Honeywell, TCS,


What do you know about device context?

0 Answers   C DAC,


Can a abstract class have a constructor?

0 Answers  


Explain async and await?

1 Answers  


What are virtual destructors?

0 Answers   InfoAxon Technologies,


Categories