隨筆-12  評(píng)論-0  文章-1  trackbacks-0
            2012年9月20日
          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) | 評(píng)論 (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) | 評(píng)論 (0)編輯 收藏
          主站蜘蛛池模板: 连州市| 镇远县| 濉溪县| 佛坪县| 甘谷县| 集贤县| 延寿县| 汕尾市| 读书| 咸宁市| 卓尼县| 周宁县| 长汀县| 盐边县| 临夏县| 鹰潭市| 阳信县| 贡嘎县| 蒙自县| 凤翔县| 安康市| 佛坪县| 湟中县| 临潭县| 剑川县| 栾川县| 泰安市| 新昌县| 禄劝| 黄梅县| 肃宁县| 巴里| 夏河县| 马尔康县| 枣强县| 宁远县| 离岛区| 舒城县| 华坪县| 哈尔滨市| 云林县|