Similar to Java, Obj-c divided a class into public and private part strictly. Other functions can use only public method and property of the class, while in Python, everything in fact is public.
In obj-c method and property are called in different syntax. [object message] is used for a method, and object.property is for a property. However, in python it seems that the only difference is that properties do not have the brackets behind it.
But I assume that for my knowledge about the both language is far from enough, there are much more difference within them. By Why Objective-C is “weird” for the contemporary programmers, Python is more c++-like while obj-c learns more from small talk.
No comments:
Post a Comment