Answer the following statements true (T) or false (F)

1. It is legal to call a constructor as a member function of an object of a class, as in```
class A
{
public:
A(){}
A(int x, int y):xx(x), yy(y) {}
// other members
private:
int xx;
int yy;
};
int main()
{
A w;
w.A(2,3); // Is this legal?
```
2. A constructor can be called implicitly or explicitly. (Implicitly means the compiler did it for you.) In the interest of uniformity in answers, please use class A; for your examples.
3. A class may not have another class type object as a member.
4. Any use of the keyword const is a promise to the compiler, and a request to the compiler to enforce the promise. What promises?


1. False.
2. True
3. False
4. True.

Computer Science & Information Technology

You might also like to view...

To collapse or expand a panel group, click the ___________ at the top of the panel or double-click its tab.

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

Computer Science & Information Technology

In addition to adding a sound to a Web page with the bgsound element, you can also add a sound with a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

If an input mask is used, data will not be restricted during entry.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Click the ____ button to view Master Documents.

A. Draft B. Outline C. Web Layout D. Print Layout

Computer Science & Information Technology