[Algorithms] C++ inherited constructors
Brought to you by:
vexxed72
|
From: Matt A. <de...@gm...> - 2000-07-15 10:22:32
|
Hi,
I got a question about the C++ class hierarchy.
class a
{
a () {...}; // constr a
};
class b : a
{
b () {...}; // constr b
};
b instance;
When creating an instance of b, constructors for both class a and class b
are called.
Is there a way to suppress the automatic calling of constructor a ?
Or something like 'overloading' the old constructor by a new one ?
I couldn't find anything like that in the compiler docs.
Any help appreciated,
Matt
|