C++ Programming and Technical Programming Technical

What is the primary purpose of a default constructor?
a) To allow multiple classes to be used in a single
program.
b) To copy an actual argument to a function's parameter.
c) To initialize each object as it is declared.
d) To maintain a count of how many objects of a
class have been created.

Read Solution (Total 2)

C++ Other Question

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.
What does the term “default parameter” mean in
C++?
a) It means that the compiler supplies default functionality
that you get for "free".
b) A parameter that C++ automatically supplies a
default value for.
c) Some C++ functions have all the parameters
written for you by the compiler
d) A parameter based on primitive C++ variable
types.