C++ Programming and Technical

What is the point in making a destructor "virtual"?
a) There is no value.
b) C++ uses it for memory leak detection.
c) It causes the derived class destructor to be
called upon delete.
d) A derived class destructor is always called, it just
changes the order of calling

Read Solution (Total 0)

C++ Other Question

What is the primary value in using virtual functions
within C++?
a) They prevent the base class function from ever
being called.
b) They allow you to provide unique behavior for
derived classes.
c) Since they are "virtual" they sometimes don't
really exist.
d) Internet technologies
In C++ what is the difference between a struct
and a class?
a) There is no comparison.􀀁 Structs are used in C
while classes are used in C++.
b) Classes use less memory since it is newer technology.
c) You cannot implement functions when you use a
struct.
d) The default access specifier.