Given the class below, tell to what value the default constructor initializes the data member. Name this initialization technique and give another way to write the constructor.

What will be an ideal response?
```
class A
{
public:
A();
private:
int a;
};

A::A() : a(17)
{
//deliberately empty
}
```


This is a base (or member) initializer list, albeit a short one. The alternate
way to initialize in this constructor follows.

Computer Science & Information Technology

You might also like to view...

When an End Sub statement is reached in a Sub procedure, execution jumps to

(A) the statement before the statement that called the Sub procedure. (B) the statement after the statement that called the Sub procedure. (C) the beginning of the event procedure containing the calling statement. (D) the end of the event procedure containing the calling statement.

Computer Science & Information Technology

What are the two basic types of twisted pair cabling?

What will be an ideal response?

Computer Science & Information Technology

When testing a cable run, always include the __________________.

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

Computer Science & Information Technology

An item's place is its condition in relation to the mouse pointer.

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

Computer Science & Information Technology