When you define a C++ class, which of the following should be part of the implementation?
a) all declarations of private member variables
b) all declarations for public member functions
c) all explanatory comments for public member declarations.
d) all declarations for private member functions (auxiliary or helping functions)
e) all member function definitions, public and private (implementations of
functions).
a) d) and e) are implementation.
You might also like to view...
How can a method send a primitive value back to the caller?
A. It cannot send primitive values back to the caller B. By using the return statement C. By assigning the value to one of its parameters D. It can call its caller with the value
Desktop, laptop, and tablet computers, and mobile devices are classified as ________.
A. midrange computers B. supercomputers C. personal computers D. mainframe computers
In Java, when is an object marked for garbage collection?
What will be an ideal response?
A server program written in one language (for example C++) provides the implementation of a BLOB object that is intended to be accessed by clients that may be written in a different language (for example Java). The client and server computers may have different hardware, but all of them are attached to an internet. Describe the problems due to each of the five aspects of heterogeneity that need to be solved to make it possible for a client object to invoke a method on the server object.
What will be an ideal response?