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

Computer Science & Information Technology

You might also like to view...

Programs are normally installed and launched in response to __________ or __________.

a. user commands b. operator commands c. neither A nor B d. either A or B

Computer Science & Information Technology

All of the following are default SharePoint template types EXCEPT:

A) Team Site. B) Enterprise Search Center. C) Departmental Site. D) SAP Workflow Site.

Computer Science & Information Technology

The Show/Hide button is used to display the ________ marks

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which two parts are included in a MAC address?

A. The network address and the node address B. The computer name and the node address C. The Organizationally Unique Identifier and the device ID of the NIC D. The IP address and the NIC's serial number

Computer Science & Information Technology