Search:

Type: Posts; User: Elysia

Search: Search took 0.28 seconds.

  1. Replies
    9
    Views
    2,824

    All I see is that you tried to do A a = B(); ...

    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...
  2. Replies
    9
    Views
    2,824

    If it helps anything, it works with references,...

    If it helps anything, it works with references, as well.
Results 1 to 2 of 2