consolefont isn't a member of the Font class. It's an
instance of the Font class.
To add consolefont as a member variable to Console:
class Console{ private: Font consolefont; // consolefont is a private member of Console public: Console(); ~Console();};
This way consolefont will be accessible to all the methods of the Console class. If it needs parameters for its construction, you can provide them in the Console constructor's initializer list:
Console::Console() : consolefont("Arial",12){}
If you aren't familiar with the concepts I used here, I suggest you read up on classes and how to use them.
EDIT: up until others pointed out I missed that Console is derived from Font. That makes no sense, don't do that. Inheritance is an is-a relationship, meaning the derived class is-a superclass. A Console most definitely is-not-a Font.