Featured post

Difference between protocol and delegates?

A protocol, declared with the ( @protocol syntax in Objective-C) is used to declare a set of methods that a class "adopts" (de...

Thursday, 9 April 2015

What is Category ?

Category in objective C allows you to extend the functionality of  existing class without subclassing it.Category can add some extra functionalities to a class. You don't have to declare instance of a specific class with it's name.Just import that category and all the Object  become instance of the category implicitly, all the implementation is now available to them.
What is Subclass?

-A subclass inherits methods and instance variables from its superclass.
-Here sometimes,you need to intently override the existing methods to add extra functionalities.
-In case of subclassing,you need to explicitly declare that Object with that subclass name and then all the methods become visible.
-

No comments:

Post a Comment