What is wrong with this code?

```
class CReceipt
{
private:
float price;
public:
CReceipt();
CReceipt( float p);
CReceipt(float p) {price = p:}
};

```

A. Nothing is wrong with this code.
B. should not have a semi-colon after last brace.
C. the constructor does not initialize private variables.
D. There are two declarations for the overloaded CReceipt() function.


D. There are two declarations for the overloaded CReceipt() function.

Computer Science & Information Technology

You might also like to view...

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

1. A C++ declaration is a definition that also allocates storage for an identifier's value (or function's body etc.). 2. The range of values for an int variable is from about 0 to +2 billion.

Computer Science & Information Technology

A(n) ____ text box automatically expands horizontally as text is typed.

a. point b. area c. dynamic d. overflow

Computer Science & Information Technology

Your outline can be converted into slides.

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

Computer Science & Information Technology

An enhanced ________ displays in Office 2013 when the mouse pointer is placed over a button

Fill in the blank(s) with correct word

Computer Science & Information Technology