Suppose Circle and Rectangle classes are derived from GeometricObject and you declared
```
void displayGeometricObject(GeometricObject shape)
{
cout << shape.toString() << endl;
}
```
Which of the following function call is correct?
A. displayGeometricObject(Rectangle(2, 3));
B. displayGeometricObject(GeometricObject("black", true));
C. displayGeometricObject(string());
D. displayGeometricObject(Circle(5));
A. displayGeometricObject(Rectangle(2, 3));
B. displayGeometricObject(GeometricObject("black", true));
D. displayGeometricObject(Circle(5));
You might also like to view...
Navigating downward through multiple levels of a folder structure is known as ________
Fill in the blank(s) with correct word
Which of the following is considered a primary goal of effective information technology (IT) governance?
a. Mitigating IT-related risks b. Identifying appropriate IT opportunities c. Ensuring smooth induction of IT in an organization d. Complying with section 504 of the Sarbanes-Oxley Act