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...

An open element is also known as a(n) _____ element.

A. ?null B. ?void C. ?empty D. ?key

Computer Science & Information Technology

A _____ is a central storehouse of information about a system’s data.

A. data cube B. data feed C. data mart D. data repository

Computer Science & Information Technology