• <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
            一本色道久久综合亚洲精品| 精品久久久无码中文字幕| 久久精品人妻中文系列| 国产精品免费久久| 欧美熟妇另类久久久久久不卡 | 国产精品欧美久久久天天影视| 久久精品国产亚洲AV无码麻豆 | 久久夜色精品国产亚洲av| 亚洲AV日韩精品久久久久久| 久久久久一区二区三区| 青青青伊人色综合久久| 久久亚洲精品成人AV| 久久精品夜夜夜夜夜久久| 久久婷婷人人澡人人爽人人爱| 久久精品国产精品亚洲毛片| 亚洲午夜久久久影院| 久久久精品2019免费观看| 久久综合亚洲欧美成人| 久久91综合国产91久久精品| 高清免费久久午夜精品| 日韩精品国产自在久久现线拍| 精品久久久久久国产| 国产成人精品久久综合| 久久国产成人精品国产成人亚洲| 超级碰久久免费公开视频| 久久久无码精品午夜| 久久国语露脸国产精品电影| 97久久国产亚洲精品超碰热| 久久精品女人天堂AV麻| 久久夜色精品国产噜噜噜亚洲AV| 久久综合狠狠综合久久| 亚洲精品乱码久久久久久按摩 | 麻豆精品久久精品色综合| 99久久精品久久久久久清纯| 午夜福利91久久福利| 品成人欧美大片久久国产欧美| 久久久久人妻一区二区三区vr | 丰满少妇高潮惨叫久久久| 久久午夜福利电影| 久久久精品无码专区不卡| 狠狠精品干练久久久无码中文字幕|