How do I call a super constructor in C++?

If you want to call a superclass constructor with an argument, you must use the subclass’s constructor initialization list . Unlike Java, C++ supports multiple inheritance (for better or worse), so the base class must be referred to by name, rather than “super()”.

Sizin İçin Seçtik  What is inheritance Java?

Leave a Reply

Your email address will not be published. Required fields are marked *

How do I call a super constructor in C++?

If you want to call a superclass constructor with an argument, you must use the subclass’s constructor initialization list . Unlike Java, C++ supports multiple inheritance (for better or worse), so the base class must be referred to by name, rather than “super()”.

Sizin İçin Seçtik  Who won the Darts Championship last night?

Leave a Reply

Your email address will not be published. Required fields are marked *

How do I call a super constructor in C++?

If you want to call a superclass constructor with an argument, you must use the subclass’s constructor initialization list . Unlike Java, C++ supports multiple inheritance (for better or worse), so the base class must be referred to by name, rather than “super()”.

Sizin İçin Seçtik  How are this () and super () used with constructors?

Leave a Reply

Your email address will not be published. Required fields are marked *