Objective-C
|
C#
|
Instance variable
|
Member variable
|
“id” weakly type
|
“var” implicit type
|
Strong typed variable must declare itself to be pointer:
MyClass *myObject1;
|
Reference type variables are by default pointers.
|
instance methods and class methods
|
object methods and static methods
|
Messaging an object
|
Invoking an instance’s method
|
Properties
|
Properties (get; set;)
|
“self”
|
“this”
|
protocol
|
interface
|
SELECT * FROM Joseph.Thoughts WHERE Topics LIKE 'Pseudo' AND PostDateTime LIKE 'Random' DESC
Tuesday, November 29, 2011
Objective-C v.s. C# -- A Quick Compare
Here is a quick comparison table of some basic terminologies after I read "Learning Objective-C: A Primer":
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment