Saturday, 3 November 2012

Objective-C Language


Objective-C syntax is a superset of standard C syntax, and its compiler works for both C and Objective-C source code. The compiler recognizes Objective-C source files by a ".m'' extension, just as it recognizes files containing only standard C syntax by a ".c'' extension. The Objective-C language is fully compatible with ANSI standard C. Objective-C can also be used as an extension to C++. At first glance, this may seem superfluous since C++ is itself an object-oriented extension of C. But C++ was designed primarily as "a better C,'' and not necessarily as a full-featured object-oriented language. It lacks some of the possibilities for object-oriented design that dynamic typing and dynamic binding bring to Objective-C. At the same time, it has useful language features not found in Objective-C. When you use the two languages in combination, you can assign appropriate roles to the features found in each and take advantage of what's best in both.

0 comments:

 
© Copyright 2035 iOS Developer
Theme by Yusuf Fikri