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 base class and child class in 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  What is ICO Ido IEO?

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  Does a subclass need to have a constructor quizlet?

Leave a Reply

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