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 an extension?



What is an extension?..

Answer / Krati Vishnoi

In Objective-C, an extension is a way of adding methods and properties to existing classes without modifying the original implementation files. Extensions help you separate your code into smaller parts, making it more readable and manageable. To create an extension, simply place the additional code inside a curly brace block following the @interface declaration for the class in a .m or .h file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is the difference between a script and function?

1 Answers  


When would you use nsarray and nsmutablearray?

1 Answers  


What is difference between c and objective c?

1 Answers  


What does the gc () method?

1 Answers  


Distinguish between @synthesize and @dynamic in objective –c?

1 Answers  


What is objective c?

1 Answers  


What is the difference between atomic and nonatomic synthesized properties?

1 Answers  


Explain what is #import?

1 Answers  


Is a fact objective?

1 Answers  


What is block in objective c?

1 Answers  


What is data encapsulation in objective-c?

1 Answers  


Why do we require class extension?

1 Answers  


Categories