The source code could be access in the link below for test:
https://github.com/wly3155/test2/blob/master/inheritance_test.cpp
The source code could be access in the link below for test:
https://github.com/wly3155/test2/blob/master/inheritance_test.cpp