Hello,
I have a class, yClass, that I need to add a couple of member variables to.
So I thought I knew how to do this but it turns out I don't ;-)
class yClass
{
public:
/// Construct an yClass instance
yClass();
/// Construct an yClass instance initializing from a given object
yClass(yClass& yObj);
/// Default destructor
virtual ~yClass();
...
};
class mClass : public yClass
{
???
private:
int m_x;
int m_y;
zClass *m_pzObj;
}
How do I write the constructor and deconstructor for mClass so it also
calls yClass constructor and deconstructor.
There is also some operators but ...
This should be one of the first things one learns about C++ but since I'm
self taught I had a crappy teacher ;-)
// Anders
--
English is not my first, or second, language
so anything strange, or insulting, is due to
the translation.
Please correct me so I may improve my English!