In the code below, how should the class Dog be derived from the class Animal?

```class Dog : - ? -
{
private:
string dogtype;
public:
Dog();
void SetDogType(string dt);
}; ```
A. class Dog : public Animal
B. class Dog : private Animal
C. class Dog : protected Animal
D. Any of the above.


D

Computer Science & Information Technology

You might also like to view...

Which of the following boolean expressions tests to see if x is between 2 and 15 (including 2 and 15)?

a. (x<=15 || x>=2) b. (2 <=x || x <=15) c. (x >=2 && x <=15) d. (2 <= x <= 15)

Computer Science & Information Technology

The optional attribute _______ of the action indicates to the PSP parser that the content of the inserted file is copied into the PSP once, at PSP generation time.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The proper alignment of the transmit and receive pairs in a CAT5/5e/6 UTP cable requires what?

A) The transmit (+) and (-) signals connected to the receivers (-) and (+) signals, respectively. B) The transmit (-) and (+) signals connected to the receivers (-) and (+) signals, respectively. C) The transmit (+) and (-) signals connected to the receivers (+) and (-) signals, respectively. D) None of these answers are correct.

Computer Science & Information Technology

The legal document that orders a person to turn over records or documentation to a representative of the government is called what?

a. Writ b. Warrant c. Subpoena d. Court Order

Computer Science & Information Technology