iOS Developer Question:
Explain the difference between Inheritance and Category?
Answer:
Category enables to add methods only. It does not allow the inclusion of Data Members unlike Inheritance where both the Data and Methods can be added. Category includes Complete Application in its Scope whereas Inheritance’s scope is only within that particular File.
Previous Question | Next Question |
Explain what is a Class? | Explain me what is Fast Enumeration? |