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 ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are all the newly added frameworks iOS 4.3 to iOS 5.0?

729


What is mvc? Mvc architecture of iphone app.

858


How do I exit safe mode on my iphone?

756


What happens if the methods doesn’t exist?

777


Different types of persistent stores? Which all types can we have on ios?

755


What is a weak var?

782


Why iphone apps are popular?

819


What are b-trees?

759


What are lifecycle events of uiviewcontroller?

707


Tell me the hierarchy of uibutton.

855


What is appdelegate?

765


Explain ios switching applications?

780


what are the source items used by Xcode?

1029


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

772


What is the meaning of 'synthesize' keyword?

695