C++ Programming and Technical

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

Read Solution (Total 2)

C++ Other Question

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.
What is the difference between a C++ pointer
and a reference?
a) A reference is the entire object while a pointer is
only the address of it.
b) References are used only in Visual C++.
c) The syntax used to access the object.
d) Pointers are simple address to the object while a
reference uses the virtual table.