What class members does the derived class Dog inherit from the base class Animal?
```
class Animal
{
private:
string AnimalType;
int age;
public:
Animal();
SetAnimalType(string at) {AnimalType = at;}
SetAge(string a) {age = a;}
};
class Dog: public Animal
{
private:
string DogType;
public:
Dog() {;}
SetDogType(string dt) {DogType = dt;}
};
```
A. AnimalType;
B. SetAnimalType and SetAge;
C. age;
D. All of the above.
B. SetAnimalType and SetAge;
You might also like to view...
You can adjust the brightness, contrast, and color of a picture by selecting the graphic and choosing an option from the _____ button in the Adjust group.
A. Fix Photo B. Corrections C. Adjustments D. Enhancements
There are four ways to install software on a computer
Indicate whether the statement is true or false
The speed of the system clock has a significant effect on peripheral devices such as a printer or disk drive.
Answer the following statement true (T) or false (F)
Which of the following acts defines and formalizes laws to counter threats from computer-related acts and offenses?
A. Electronic Communications Privacy Act of 1986 B. Freedom of Information Act (FOIA) of 1966 C. Computer Fraud and Abuse Act of 1986 D. All of the above