when first calling the A's constructor, does that call is invoked by the Fun() constructor?
We have a Fun object in the main(). Because Fun inherits from A, A's ctor and dtor are called too.
Then?
Base class ctor is called by the compiler there.
This thing is confusing 😔
Which part is confusing to you?
What I don't understand is the first 3 lines of output
You mean? A::A() A::A() B::B()
Обсуждают сегодня