CyberArmy University | Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

RE: multiple inheritance question - c++


[Replies] [Reply] [View by Thread] [Help]
[Back To Programming]

Posted by Epsilon Maj Pain in the Ass On 2008-09-25 22:21:47
In Reply to multiple inheritance question - c++ Posted by Gamma Cpt thinkt4nk On 2008-09-25 21:36:45

Epsilon MajEpsilon Maj
Epsilon Maj Pain in the Ass


The problem is, that draw() requires the member variables/functions you access to be within its scope, aka defined in the Drawable.

So either declare itsLength() and itsWidth() in Drawable or make a virtual function that gets overloaded in Rectangle.


Replies:


Guest:
Subject:
Message:
Signature:
Optional Image Link:
http://

CyberArmy::Forum v0.6
Generated In 0.00503 seconds


About Us | Privacy Policy | Mission Statement | Help