Q2: Which of the following is true about using inheritance in software engineering?
a. Common attributes and behaviors should be factored out of closely related classes
and placed into a base class from which the original classes can now inherit.
b. It is best to create a huge class library to make it easy for a client to find the most
appropriate class for his or her needs.
c. A class produced through inheritance should be as large as possible to fully
encompass all of the functionality it should offer.
d. The standard C++ libraries that are shipped with C++ compilers are usually enough
to accomplish anything an application might need to do.
Which statement about comments is false?
a) Comments begin and end with /* and */, respectively.
b) Programmers insert comments to document programs and improve program
readability.
c) Comments do not cause any machine language object code to be generated.
d) Lengthy comments can cause poor execution-time performance.