Which of the following two versions of the class declarations is correct?
```
Version I:
class A
{
public:
A()
{
}
private:
A* a;
int i;
};
Version II:
class A
{
public:
A()
{
}
private:
A a;
int i;
};
```
a. Both versions are correct.
b. Both versions are wrong.
c. Version II is correct.
d. Version I is correct.
d. Version I is correct.
You might also like to view...
Which of the following is NOT considered part of a good top-down design chart?
(A) A subtask should accomplish as many tasks as possible. (B) Subtasks should proceed from general to specific as you read down the chart. (C) Subtasks should be as independent of each other as possible. (D) The design should be readable.
Typically, the operating system is stored on disk, and the program that loads the operating system into memory, the __________, is stored on the first sector (or two) of the same disk.
a. linkage editor b. boot c. loader d. The premise of this question is false.
A(n) orphanoccurs when only a few beginning lines of an element appear at the bottom of a page, while the bulk of the content is placed on the following page.
Answer the following statement true (T) or false (F)
The item that runs along the left side of the window in the accompanying figure is the _____ bar.
A. Entry B. View C. Resource D. Task