Which of the following is correct syntax to declare C++ class B to be a public base class for derived class D
a. public base class B: class D {/*…*/};
b. class D : public class B {/* … */};
c. class D : public B {/* … */};
d. class B: public D { };
e. None of the above
c)
Explanation: Part a) is a corruption of the syntax. Part b) has an extra class keyword. Part d) has base and derived classes backwards.
You might also like to view...
The concentric circles on a hard disk are called ________
A) sectors B) tracks C) platters D) cells
What is the purpose of using this command, and from what prompt is this command issued?
version 2 What will be an ideal response?
Permissions-based file sharing is limited to files located in the Public folder
Indicate whether the statement is true or false
Which of the following is TRUE about a pinned program?
A) It becomes a permanent selection on the right side of the taskbar. B) A program can be pinned to either the Start menu, the taskbar, or both. C) A pinned program always shows in the Notification area. D) You can pin a program directly from the taskbar to the Start menu.