diff --git a/practical_exercises/10_day_practice/day6/虚函数/虚函数特性.cpp b/practical_exercises/10_day_practice/day6/虚函数/虚函数特性.cpp index d4e3d6c..8ee62f7 100644 --- a/practical_exercises/10_day_practice/day6/虚函数/虚函数特性.cpp +++ b/practical_exercises/10_day_practice/day6/虚函数/虚函数特性.cpp @@ -3,28 +3,28 @@ using namespace std; class A { public: - void f(int i){cout<<"¡­A"<f(1); //µ÷ÓÃA::f - pB=&b; pB->f(1); //µ÷ÓÃA::f - pB=&c; pB->f(1); //µ÷ÓÃA::f - pB=&d; pB->f(1); //µ÷ÓÃA::f + pB=&b; pB->f(1); //µ÷ÓÃB::f + pB=&c; pB->f(1); //µ÷ÓÃC::f + pB=&d; pB->f(1); //µ÷ÓÃD::f system("pause"); return 0; }