What are all the difference between categories and subclasses in iOS operating system?
Answer / Asad Ali
Categories and Subclasses are two ways to extend or modify the behavior of existing classes in iOS. The main differences are as follows:
1. Subclass: A subclass is a new class that inherits properties and methods from an existing class, and can override those methods. It creates a new entity with its own identity.
2. Category: A category adds methods to an existing class without creating a new subclass. It doesn't create a new entity but extends the functionality of an existing class. Methods added through categories are compiled into the same binary as the original class, but they don't have their own instance variables.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can I have relationship between entities in separate stores (in case of configurations)?
What are the differences between categories and extensions?
How to register as a iphone developer?
Define ipa?
Do you know what is iphone reference library?
How to run xcode and other tools with the iphone sdk?
What is didreceivememorywarning method in you viewcontroller?
Explain commonly ios libraries
Explain parent-child context setup. What are the advantages?
Explain the different types of ios application states.
Explain the usage of struct?
What are ibeacons?