What is wrong with this code?

```
class Square
{
private:
int side = 4;
public:
Square() {side = 4;}
void SetSide(int s) {side = s;}
};

```

A. Nothing is wrong with the code.
B. side can’t be initialized in the set.
C. side can’t be initialized in the private section.
D. no need to initialize in the constructor because it is initialized in the private section.


C. side can’t be initialized in the private section.

Computer Science & Information Technology

You might also like to view...

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

The HFS and HFS+ file systems have four descriptors for the end of a file (EOF).

Computer Science & Information Technology

Which Cisco IOS command is used to disable the use of the zero subnet?

A) no subnet-zero B) ip classless C) no ip classless D) no ip subnet-zero

Computer Science & Information Technology

?Microsoft's risk management model includes _____, which specifies the risk type.

A. ?category B. ?description C. ?trigger D. ?probability

Computer Science & Information Technology

Diffie-Hellman key exchange uses asymmetric encryption to exchange session keys. _________________________

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

Computer Science & Information Technology