What is an extension?
Answer / Krati Vishnoi
In Objective-C, an extension is a way of adding methods and properties to existing classes without modifying the original implementation files. Extensions help you separate your code into smaller parts, making it more readable and manageable. To create an extension, simply place the additional code inside a curly brace block following the @interface declaration for the class in a .m or .h file.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between method and type?
What are the characteristics of the category?
What are the important data types found in objective-c?
What is toll-free bridging? When is it useful?
Is objective c object oriented?
Is swift based on objective c?
How do you define a block?
How to convert data to string in objective c?
What do you mean by @synthesize and @dynamic in the objective-c? And also explain what do you mean by synthesized in objective-c?
What is the difference between underscore and self (i.e self.xx and _xx) ?
What is a delegate in objective c?
Explain what is data encapsulation in objective-c?