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 difference between 'assign' and 'retain' keyword?

0 Answers  


What is the use of controller object UIApplication?

1 Answers  


What is cocoa framework in ios?

0 Answers  


what are all instruments available in Xcode?

0 Answers  


What is UICollectionView ?

1 Answers  


What are the delegate methods of mkmapview?

0 Answers  


Will iphone 7 get ios 13?

0 Answers  


Assume that an app is not in foreground but is still executing code. In which state will it be in?

0 Answers  


Explain @synchronized ,@dynamic

0 Answers  


What is fast enumeration?

0 Answers  


When a nsfetchrequest fetches an entity object from store, does it fetch all of its data at once?

0 Answers  


how you can delete a smart group created in Xcode?

0 Answers  


Categories