| 7 | using namespace std; |
| 8 | |
| 9 | struct Base { |
| 10 | int v1{}; |
| 11 | private: |
| 12 | int v3{}; |
| 13 | public: // 显示声明public |
| 14 | int v2{}; |
| 15 | static void print(){ |
| 16 | printf("%s\n","Base hello world"); |
| 17 | }; |
| 18 | Base() { |
| 19 | cout<<"Base construct"<<endl; |
| 20 | }; |
| 21 | virtual ~Base() { |
| 22 | cout<<"Base deconstruct"<<endl; |
| 23 | }; |
| 24 | }; |
| 25 | |
| 26 | typedef struct Base1 { |
| 27 | int v1; |
nothing calls this directly
no outgoing calls
no test coverage detected