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.
-
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