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

What is delegation in oops?

0 Answers  


What are the differences between value types and reference types?

0 Answers  


What is the function of the not null constraint?

0 Answers  


What is an expression in c#?

0 Answers  


Why do we use polymorphism in c#?

0 Answers  


Is namespace a class?

0 Answers  


Are c# strings immutable?

0 Answers  


Integer at long type variable are not object.Support your answer with example.And explain the technique to convert from value type to reference type and vice-versa.

1 Answers   HCL,


Hoe can i connect the table into the c# application?

2 Answers  


Can multiple inheritance implemented in c# ?

0 Answers  


What is system console writeline in c#?

0 Answers  


Is string reference type / value type?

56 Answers   Accenture, Microsoft, Siemens,


Categories