What are the differences between categories and extensions?



What are the differences between categories and extensions?..

Answer / maanya

Categories: Allows you to add methods on existing classes. 
Extensions: Allows you to increase the functionality (extend) of an existing class without using subclasses

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Explain Appstore uploading process

1 Answers  


DB updation when app new version comes ?

0 Answers  


what is Xcode?

0 Answers  


What is the current iphone ios?

0 Answers  


What is strong in ios?

0 Answers  






Explain the usage of struct?

0 Answers  


Is xcode a framework?

0 Answers  


Explain difference between nil and nil?

0 Answers  


What is nsmanagedobjectcontext? What are the different concurrency types?

0 Answers  


What is variable in ios?

0 Answers  


Who developed ios?

0 Answers  


What is advantage of categories? What is difference between implementing a category and inheritance?

0 Answers  


Categories