What is wrong with the following code?
```class TVset
{
private:
int screen;
bool HiDef;
public:
TVset( ){};
int Getscreen(int scr);
};
int main( )
{
TVset myTV;
return 0;
}```
A. Nothing is wrong with this code.
B. the constructor does not initialize private values.
C. there is a semi-colon after the class declaration.
D. There are no set or get functions.
A
You might also like to view...
What is Math.round(3.6)?
a. 3.0 b. 3 c. 4 d. 4.0
Which of the following statements are true?
a. Multiple constructors can be defined in a class. b. Constructors do not have a return type, not even void. c. Constructors must have the same name as the class itself. d. Constructors are invoked using the new operator when an object is created.
The Page Setup dialog box offers options to customize margins, select page orientation, and center documents vertically
Indicate whether the statement is true or false
____ contain a form element to collect information from the user which is sent to a server for processing.
A. Static Web pages B. Dynamic Web pages C. Modern Web pages D. Hyperactive Web pages