• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 311, comments - 0, trackbacks - 0, articles - 0
              C++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理
            class test1
            {
            public:
                
            virtual void animation()
                {
                    cout 
            << "test1 animation" << endl;
                }

                
            virtual void animation1() = 0;
            };

            class test2 : public test1
            {
            public:
                
            virtual void animation1()
                {
                    cout 
            << "test2 animation1" << endl;
                }
                
            void animation()
                {
                    cout 
            << "test2 animation" << endl;
                }
            };

            class test3 :public test2
            {
                
            void animation1()
                {
                    cout 
            << "test3 animation1" << endl;
                }
                
            void animation()
                {
                    cout 
            << "test3 animation" << endl;
                }
            };

            int _tmain(int argc, _TCHAR* argv[])
            {
            //    allocatePractice();
                test1* test = new test3();
                test
            ->animation();
                test
            ->animation1();

            //     //定義
            //     std::pair<int, string> ming(1,"ming1");
            //     std::map<int ,string> authors;
            //     //插入
            //     authors.insert(make_pair(3,"ming3"));
            //     authors.insert(map<int, string>::value_type(2,"ming2"));
            //     authors.insert(ming);    
            // 
            //     cout << authors[4] << endl;
                

                
            return 0;
            }
            virtual 為重載關(guān)鍵字,父類方法加上這個(gè)關(guān)鍵字,可以實(shí)現(xiàn)重載
            輸出:
            test3 animation
            test3 animation1
            2021久久精品国产99国产精品| 久久精品无码一区二区app| 岛国搬运www久久| 伊人色综合久久| 无码8090精品久久一区| 久久久久久久波多野结衣高潮 | 久久免费香蕉视频| 久久精品国产精品亚洲精品| 精品久久久中文字幕人妻| 久久66热人妻偷产精品9| 久久久精品久久久久特色影视| 久久久91人妻无码精品蜜桃HD| 久久婷婷五月综合97色直播| 亚洲AV无码成人网站久久精品大| 99久久国产综合精品五月天喷水 | 国产精品久久久久aaaa| 久久香蕉国产线看观看乱码| 亚洲精品乱码久久久久久久久久久久 | 亚洲国产精品无码久久久秋霞2| 国产精品久久久久国产A级| 天天综合久久一二三区| 国产精品久久国产精品99盘| 精品国产乱码久久久久软件| 日本精品久久久久影院日本| 无码超乳爆乳中文字幕久久| 久久久99精品成人片中文字幕| 久久精品无码专区免费东京热| 久久婷婷五月综合色奶水99啪| 久久久久久久尹人综合网亚洲| 久久免费看黄a级毛片| 久久久久久噜噜精品免费直播| 国产成人精品久久一区二区三区 | 久久人妻AV中文字幕| 久久精品国产99国产精品| 久久久久久久尹人综合网亚洲 | 久久久久99精品成人片牛牛影视| 久久天天躁狠狠躁夜夜avapp| 成人午夜精品无码区久久| 亚洲中文久久精品无码ww16 | 欧洲人妻丰满av无码久久不卡| 久久久久97国产精华液好用吗|