C++ Programming and Technical Logical Reasoning Blood Relations

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.

Read Solution (Total 0)

C++ Other Question

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
If two functions within the same class have the
same name what happens?
a) Either one will be called depending on the parameters.
b) Nether function will be called.􀀁 This is dead
code and a very di􀀂cult problem to debug.
c) Both functions will be called in order.􀀁
d) The base class function of the same name will be
called