Explain the difference between inheritance and category?



Explain the difference between inheritance and category?..

Answer / Rajeev Kumar Yadav

Inheritance is a relationship where one class inherits properties and methods from another. In Objective-C, this is achieved using the `@interface` and `@implementation` keywords. A category, on the other hand, allows you to add new methods or properties to an existing class without subclassing it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

How to register as a iphone developer?

1 Answers  


Which are the app’s state transitions when it is launched?

1 Answers  


Which programming language is used in ios?

1 Answers  


What is xib?

1 Answers  


What is the latest version of ios?

1 Answers  


What is inactive state in ios?

1 Answers  


What are some common execution states in ios?

1 Answers  


What is arc?

1 Answers  


What is bundle

1 Answers  


What is block in ios?

1 Answers  


What is the use of double question marks (“??”) ?

1 Answers  


Explain UIView life cycles

1 Answers  


Categories