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 are the steps to create an assembly and add it to the gac?

0 Answers  


what does static void Main(string[] args) in C# mean????????

5 Answers   ssinformatics,


How Reflection is used and what it's significance ?

0 Answers   HCL,


List the difference between interface and abstract class?

0 Answers  


What are delegate methods?

0 Answers  


Define a jagged array in c#?

0 Answers  


What does assert() do?

2 Answers  


What are c# attributes and its significance?

0 Answers  


Why we use get set property in c#?

0 Answers  


What is global asax in c#?

0 Answers  


What are All kind of access specifiers for a class and for methods

0 Answers  


What is the difference between ref & out parameters?

2 Answers  


Categories