Objective-C语法之基本数据类型 NSLog(@"The size of a short int is: %lu bytes.",sizeof(short int));//c语言字符串 NSLog(@"The value of cstring = %s",cstring); 84500992 2012-06-14 02:24:02
Lua中实现面向对象的一种漂亮解决方案 下面看看怎样继承: test=class(basetype) -- 定义一个类 test 继承于 basetype 代码如下: 现在可以试一下了: 代码如下: 其实,实现多重继承也并不复杂,这里就不再展开了。 勤奋小炮手 2019-06-13 09:27:31