Object life cycle in c++

 

Introduction

This is an example to show the time sequence of object creation and deletion.

Code

Gitlab example

Result

$ ./app/LifeCycleDemo/LifeCycleDemo
ElemInBase
BaseFoo
ElemInChild
FooA
~FooA
~ElemInChild
~BaseFoo
~ElemInBase


Comments