| 56 | virtual ~Base() = default; |
| 57 | }; |
| 58 | class Derived : public Base |
| 59 | { |
| 60 | public: |
| 61 | inline void who() override // 不写inline时隐式内联 |
| 62 | { |
| 63 | cout << "I am Derived\n"; |
| 64 | } |
| 65 | }; |
| 66 | |
| 67 | int main() |
| 68 | { |
nothing calls this directly
no outgoing calls
no test coverage detected