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

Can python apps run on ios?

828


What is meaning of 'nonatomic' keyword?

921


What is arc ? How it works?

972


What is main thread checker?

836


Explain how an autorelease pool works at the runtime level

2705


How do you check if your code has memory leaks?

857


What are the lifecycle events of uiviewcontroller?

935


Can a static library (.a) contain assets like pictures, sound documents and so on.?

799


Explain the difference between nsarray and nsmutablearray?

920


What are the benefits of ios?

948


What is push notification?

912


What are the 7 osi layers?

811


What is onboarding and why is it so important for mobile design? : IOS Architect

821


What is difference between delegate and datasource in ios?

859


What is view object in ios?

831