• <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
            亚洲伊人久久大香线蕉综合图片| 久久久噜噜噜久久| 狠色狠色狠狠色综合久久| 久久国产精品99国产精| 久久一区二区三区99| 色8激情欧美成人久久综合电| 久久久久久久久久久久久久| 天天爽天天爽天天片a久久网| 热99RE久久精品这里都是精品免费| 国产成人综合久久综合| 久久综合给久久狠狠97色 | 伊人久久综合精品无码AV专区 | 久久人人爽人人爽人人片AV东京热| 久久精品国产精品亚洲毛片| 日韩美女18网站久久精品| 久久久久久国产精品免费无码 | 久久一区二区三区免费| 66精品综合久久久久久久| 久久精品国产精品亚洲毛片| 久久久中文字幕日本| 午夜精品久久久久| 久久久久久极精品久久久| 日日狠狠久久偷偷色综合0| 国产综合久久久久| 久久精品一区二区国产| 99久久这里只精品国产免费| 欧美久久久久久午夜精品| 久久久久亚洲AV片无码下载蜜桃 | 久久婷婷午色综合夜啪| 久久久久亚洲av成人无码电影| 久久最近最新中文字幕大全 | 91精品国产色综合久久| 久久久久高潮综合影院| 偷窥少妇久久久久久久久| 四虎久久影院| 久久精品综合网| 久久香蕉超碰97国产精品| 久久久久国产精品人妻| 欧美一区二区三区久久综| 久久久久久久女国产乱让韩| 色综合久久中文字幕无码|