Programming with Objective-C --- Working with objects
1, Objective-C的对象应该是一个类似C++的对象指针。不过这个指针是有引用计数自动释放的。2, 函数调用, [someobject call_function], call_function is the member function of the class. some object is the instance of class.3, function override. when the function is also defined in the derived c...
Programming with Objective-C --- defining Classes
定义类Objective-C的面向对象的思想和C++很像。有继承的概念。Objective-C定义类:@interface ClassName // ClassName 要求整个APP唯一。所以在新建工程时,要求添加一个前缀,这样在新建类时可以添加这个前缀。@property NSString *value_name; // 这个属性定义和C++不同,这样定义是public的,应该不是一个类属性(...