All I see is that you tried to do
A a = B();
Which would call a constructor A::A(B&) which does not exist.
However, remember that B inherits from A; thus polymorphism applies.
Therefore, B...
Type: Posts; User: Elysia
All I see is that you tried to do
A a = B();
Which would call a constructor A::A(B&) which does not exist.
However, remember that B inherits from A; thus polymorphism applies.
Therefore, B...
If it helps anything, it works with references, as well.