What is an isa instance variable?

The NSObject class reference refers to the "isa instance variable", which

initialized by a data structure that describes the class

can someone explain what i should know about this isa instance variable? What is this good for? What does it mean? It sounds like a norm, for example, DIN, ISO, etc .; Any idea what it is?

+3
source share
2 answers

It is used to determine the inheritance path of a class. Formally:

, , . ( NSObject), isa, . . - Objective-C GNUstep Base: Objective-C

isa OOP IS-A, , :

IS-A .
IS-A.

, isa , , IS-A .

+7

Objective-C. , . , Objective-C.

.

+6

Source: https://habr.com/ru/post/1707111/


All Articles