How is it possible for BrassPlus to use a reference to a Brass object in its constructor if the BrassPlus type is not derived from the Brass class?
For some reason it works(which I am trying to find out) but I imagined I would have to use a declaration similar to the following:
class BrassPlus: public Brass : public AcctABC
I know the syntax is probably horrific but what i'm triyn got say is brassplus is derived from the brass class which is derived from the AcctABC class.
How is it possible for BrassPlus to use a reference to a Brass object in its constructor if the BrassPlus type is not derived from the Brass class?
Yet you've no problem with the BrassPlus using objects of type double in its constructor? Why should BrassPlus have any trouble using Brass in its constructor? A class' functions do not have to use just objects that class is related to.