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:26:09
In Reply to RE: multiple inheritance question - c++ Posted by Epsilon Maj Pain in the Ass On 2008-09-25 22:21:47

Epsilon MajEpsilon Maj
Epsilon Maj Pain in the Ass


I just tested it for kicks and moving this from Rectangle to Drawable does the trick:
        int getItsLength() const {return *itsLength;}
        int getItsWidth() const {return *itsWidth;}
        protected:
        int *itsLength;
        int *itsWidth;
Output as expected:
gabb@downtime:~$ vi test.cpp
gabb@downtime:~$ g++ test.cpp -o test
gabb@downtime:~$ ./test

xxxx
xxxx
xxxx
xxxx
gabb@downtime:~$



Replies:


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

CyberArmy::Forum v0.6
Generated In 0.01409 seconds


About Us | Privacy Policy | Mission Statement | Help