Die meistgefragten Interviewfragen und Antworten sowie Online-Tests
Lernplattform fur Interviewvorbereitung, Online-Tests, Tutorials und Live-Ubungen

Baue deine Fahigkeiten mit fokussierten Lernpfaden, Probetests und interviewreifem Inhalt aus.

WithoutBook vereint themenbezogene Interviewfragen, Online-Ubungstests, Tutorials und Vergleichsleitfaden in einem responsiven Lernbereich.

Interview vorbereiten

Probeprufungen

Als Startseite festlegen

Diese Seite als Lesezeichen speichern

E-Mail-Adresse abonnieren

C++ Interviewfragen und Antworten

Test your skills through the online practice test: C++ Quiz Online Practice Test

Verwandte Vergleiche

C vs C++Java vs C++

Frage 71. What is the difference between a copy constructor and an overloaded assignment operator?


A copy constructor constructs a new object by using the content of the argument object. An overloaded assignment operator assigns the contents of an existing object to another existing object of the same class.

Ist das hilfreich? Kommentar hinzufugen Kommentare ansehen
 

Frage 72. When should you use multiple inheritance?


There are three acceptable answers: "Never," "Rarely," and "When the problem domain cannot be accurately modeled any other way."

Ist das hilfreich? Kommentar hinzufugen Kommentare ansehen
 

Frage 73. Explain the ISA and HASA class relationships. How would you implement each in a class design?


A specialized class "is" a specialization of another class and, therefore, has the ISA relationship with the other class. An Employee ISA Person. This relationship is best implemented with inheritance. Employee is derived from Person. A class may have an instance of another class. For example, an employee "has" a salary, therefore the Employee class has the HASA relationship with the Salary class. This relationship is best implemented by embedding an object of the Salary class in the Employee class.

Ist das hilfreich? Kommentar hinzufugen Kommentare ansehen
 

Frage 74. When is a template a better solution than a base class?


When you are designing a generic class to contain or otherwise manage objects of other types, when the format and behavior of those other types are unimportant to their containment or management, and particularly when those other types are unknown (thus, the generosity) to the designer of the container or manager class.

Ist das hilfreich? Kommentar hinzufugen Kommentare ansehen
 

Frage 75. What is a mutable member?


One that can be modified by the class even when the object of the class or the member function doing the modification is const.

Ist das hilfreich? Kommentar hinzufugen Kommentare ansehen
 

Am hilfreichsten laut Nutzern:

Copyright © 2026, WithoutBook.