What is an arbitrary object?

I study Google what it is, but could not find the answer. You can search google yourself if you want.

So, I came for help. I just wanted to know what an object type is and what it does.

Thanks in advance...

+3
source share
2 answers

If you have an arbitrary object in Objective-C (typed id), you can request information about its class by calling the selector class:

Class c = [obj class];

You can write this to the console ( NSLog(@"%@", [obj class])) or perform other operations to see which selectors are supported on the object, etc.

+2
source

Any object derived from the ur-type language (if any).

0

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


All Articles