mhhhh, constructors are not inherited. Every class must define its own constructors. A subclass EXTENDS a superclass, which means that adds some data and\or behavior to the superclass'. The object that get instantiated (through the call to the constructor) has all the data of the superclass (implicit call to super()) and the new defined data.
To inherit a superclass constructor and use it as is, wold not make much sense because you will end up with an instance of the superclass, not and instance of the subclass.
No, I would say constructors are not inheridet, but the implementation of the class is inherited. An instance of a subclass contain a fully fledged instance of its superclass thanks to the implicit (or explicit) call to the superclass constructor.
Originally posted by Adrian Yan:
This is a theoretical question.
For example, constructors are not inherited by the subclasses. Private members are inherited, you just can't use them.
My question is: do you consider constructors members?