Given the following simplified classes,
class Pet
{
public:
virtual void print();
string name;
private:
};
class Dog: public Pet
{
public:
void print();
string breed;
};
Dog vDog;
Pet vPet;
vDog.name="rover";
vDog.breed = "Collie";
Which of the following statements are not legal?
a. vPet=vDog; cout << vDog.name;
b. vPet=vDog; cout << vDog.breed;
c. vPet=vDog; cout << vPet.name;
d. vPet=vDog; cout << vPet.breed;
d. vPet=vDog; cout << vPet.breed;
You might also like to view...
Column references in cell ranges must be typed using uppercase.
a. true b. false c. not enough information
When a chart is active a dark, bolded red border displays around the edge of the chart
Indicate whether the statement is true or false
Among the attributes of an AP div, the ____________________ is a list of the styles you have created.
Fill in the blank(s) with the appropriate word(s).
A(n) ____________________ allows you to connect the keyboard, video, and mouse signals from two or more computers to a single keyboard, video monitor, and mouse.
Fill in the blank(s) with the appropriate word(s).