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
You might also like to view...
Class IntStream provides terminal operations for common stream ________—count returns the number of elements, min returns the smallest int, max returns the largest int, sum returns the sum of all the ints and average returns an OptionalDouble (package java.util) containing the average of the ints as a value of type double.
a. consolidations b. deductions c. reductions d. trims
A set of characters or symbols that define a document's logical structure is called a ____.
A. Uniform Resource Locator B. target output format C. markup language D. Web attribute