↧
Answer by luke for What are the rules for calling the base class constructor?
Base class constructors are automatically called for you if they have no argument. If you want to call a superclass constructor with an argument, you must use the subclass's constructor initialization...
View ArticleWhat are the rules for calling the base class constructor?
What are the C++ rules for calling the base class constructor from a derived class?For example, I know in Java, you must do it as the first line of the subclass constructor (and if you don't, an...
View Article