Right now I have a class A
that inherits from class B
, and B
does not have a default constructor. I am trying the create a constructor for A
that has the exact same parameters for B
's constructor, but I get:
error: no matching function for call to ‘B::B()’
note: candidates are: B::B(int)
How would I fix this error?
See Question&Answers more detail:os