What is wrong with this code?
```class Jeans
{
private:
int size;
string brand;
public:
Jeans() {size = 10; brand = “Levis”;}
void SetSize(int s) {size = s;}
void SetBrand(string b){brand = b;}
};
int main()
{
Jeans jeans;
jeans.size = 8;
return 0;
}```
A. Nothing is wrong with this code.
B. Can’t have two statements in Jeans( ).
C. Size is a private variable of Jeans, can’t be accessed by jeans.
D. Assignment in main should be Jeans.size = 8;
C
You might also like to view...
Property StackTrace contains a(n) that represents the method call stack at the time the exception occurred.
a) class b) string c) argument d) integer
____ layout lets you set a specific size for the pages.
A. Liquid B. Elastic C. Fixed-width D. Indexed
New fields can be added or existing fields deleted in a data source by clicking Customize Columns in the New Address List dialog box.
Answer the following statement true (T) or false (F)
As the layers pass the data through the protocol stack, the addition of a header and/or trailer is called ____________________.
Fill in the blank(s) with the appropriate word(s).