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’s accessibilityhint?

903


What is framework in ios?

899


What is the short cut to open the “Code Snippet Library” in Xcode?

967


How do I get rid of app errors on iphone?

796


What is a thread in ios?

765


What’s the difference between not-running, inactive, active, background and suspended execution states?

823


What is the use of double question marks (“??”) ?

951


How do you check if your code has memory leaks?

895


Who calls the main function of you app during the app launch cycle?

903


Explain Apple push notification

1464


What is a difference between stack and heap memory?

813


Explain difference between sax parser and dom parser?

769


What is ios viewdidload?

862


Is realm db free?

866


What are the requirements for developing iphone apps?

841