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 factory methods ? What is the advantage of using it ?



What is factory methods ? What is the advantage of using it ?..

Answer / babu

Class factory methods are implemented by a class as a convenience for developers. These methods combine allocation and initialisation in a single step and return the created object.

NSDate:

Eg: + (id)dataWithBytes:(const void *)bytes length:(unsigned)length;

NSDictionary

Eg:+ (instancetype)dictionary;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

What is foundation framework in ios?

0 Answers  


. How do you change the content of your app in order to change the views displayed in the corresponding window?

1 Answers  


What are the Steps for using coredata?

0 Answers  


What is arc in ios?

0 Answers  


How do I exit safe mode on my iphone?

0 Answers  


Explain "private", "protected" and "public"?

0 Answers  


Explain the difference between 'protocol' and 'delegate'?

0 Answers  


How do I get rid of app errors on iphone?

0 Answers  


What is the difference between atomic and nonatomic properties? Which is the default for synthesized properties?

0 Answers  


Which are the ways of achieving concurrency in ios?

0 Answers  


What is made up of nserror object?

0 Answers  


 Which framework delivers event to custom object when app is in foreground? 

1 Answers  


Categories