隨筆-12  評論-0  文章-1  trackbacks-0
            2012年8月31日
          the super keyword in java generic programming is used to declare a template of a specific type. e.g.
          List<? super MyClass> list = new LinkedList<AnyTypeDerivedByMyClass>();
          posted @ 2012-12-31 15:35 Sam Zheng 閱讀(244) | 評論 (0)編輯 收藏
          int (*test(char *(*)(void)) (int); declares a function named "test" which accepts a pointer to a function accepting no parameter and returning a char pointer, the function "test" returns a pointer to a function which accepts a integer parameter and returns a integer.
          Note: a declaration declares either a variable(pointer) or function(pointer), if its name is followed by left parentheses, it is a function, otherwise it is a variable(pointer).
          posted @ 2012-09-20 14:38 Sam Zheng 閱讀(128) | 評論 (0)編輯 收藏
          if you don't feel comfortable with your code, it's time to refactor/re-think about it.
          posted @ 2012-08-31 11:36 Sam Zheng 閱讀(160) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 柘城县| 舒城县| 沈丘县| 大埔区| 贵阳市| 金乡县| 张北县| 崇阳县| 阳谷县| 大埔区| 灵武市| 民县| 邹城市| 沂南县| 凤山县| 谢通门县| 南郑县| 贺州市| 永康市| 辉南县| 抚顺县| 岳普湖县| 呼图壁县| 武山县| 津市市| 闵行区| 湄潭县| 锡林浩特市| 灵台县| 太湖县| 遵义县| 遂川县| 鄯善县| 乐清市| 涪陵区| 曲松县| 大兴区| 中阳县| 东阿县| 栖霞市| 孝昌县|