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...


What is the difference between underscore and self (i.e self.xx and _xx) ?



What is the difference between underscore and self (i.e self.xx and _xx) ?..

Answer / Son Dev Jatav

In Objective-C, 'self' refers to the current object instance. When using 'self', you access instance variables with a dot notation like 'self.variable'. An underscore '_' is often used as an ivar (instance variable) prefix in Objective-C classes for consistency with C coding style. However, it has no special meaning in Objective-C and can be replaced with self or any other valid name.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What does mean in xcode?

1 Answers  


What is the use of synchronized() block in objective c?

1 Answers  


Explain what is @synthesize in objective-c?

1 Answers  


Is objective c still used?

1 Answers  


Can you please explain the way messaging works in objective-c?

1 Answers  


What is the difference between property and instance variable?

1 Answers  


How to make a code snippet thread safe?

1 Answers  


Why is objective c better than swift?

1 Answers  


What are the three main types of property?

1 Answers  


What type of language is objective c?

1 Answers  


What is a function file?

1 Answers  


How do you call a method in objective c?

1 Answers  


Categories