Interviewer And Interviewee Guide

Swift Developer Interview Question:

Explain me what is a category and when is it used?

Submitted by: Muhammad
A category is a way of adding additional methods to a class without extending it. It is often used to add a collection of related methods. A common use case is to add additional methods to built in classes in the Cocoa frameworks. For example adding async download methods to the UIImage class.
Submitted by: Muhammad

Read Online Swift Developer Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.