Say I have a base class:
class baseClass
{
public:
baseClass() { };
};
And a derived class:
class derClass : public baseClass
{
public:
derClass() { };
};
When I create an instance of derClass
the constructor of baseClass
is called. How can I prevent this?