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

Computer Science & Information Technology

You might also like to view...

To track the changes that you make to the document, you need to activate the Track Changes feature

Indicate whether the statement is true or false

Computer Science & Information Technology

Triple-clicking on a word will select only that specific word

Indicate whether the statement is true or false

Computer Science & Information Technology