Can we use the interface and implementation file in one objective c?

Is it possible to use the interface and the implementation file in one of cocoa? If so, which one to use inside which file?

+3
source share
3 answers

No, if you do not want any of your objects to talk to each other, or if you do not want to use purely dynamic typing (each variable typed as iddoes not require compile time verification) and there is no intention of subclassing any of your own classes.

@interface @interface , . @implementation , @implementation.

@interface @implementation @implementation , @interface , , , , . , Objective-C.

+12

cocoa?

, . , factory, .

, ?

.m. .h, , .h .m.

, , , , , - . .m, , , .

+3

.m, .

0

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


All Articles