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

Explain formal protocols?

787


Why do we use synchronized ?

798


What is difference strong and weak reference ? Explain.

839


What are “strong” and “weak” references? Why are they important and how can they be used to help control memory management and avoid memory leaks?

765


Multitasking support is available from which version in iOS operating system?

913


How do I open a csv file on my phone?

818


Explain me does ios support multitasking?

827


How to download xcode for iphone development?

723


Which programming language is used in ios?

811


How would you create your own custom view in iOS operating system?

782


Explain differences between foundation and corefoundation

830


Can you please explain the difference between nsarray and nsmutablearray?

765


What language is ios written in?

806


What is the methods for unzip file in AFNetworking

1754


What is xib?

750