Examlex

Solved

We Want to Create a Class That Represents a Date

question 47

Multiple Choice

We want to create a class that represents a date.A date has a day, month, and year.For example, the date March 16, 2014 has the day 16, month 3, and year 2014.The basic framework of a date class is below: We want to create a class that represents a date.A date has a day, month, and year.For example, the date March 16, 2014 has the day 16, month 3, and year 2014.The basic framework of a date class is below:   Which of the constructor specifications below will allow this code to behave as desired?  A) public void Date (int d, int m, int y)  B) public init (int d, int m, int y)  C) public Date (int d, int m, int y)  D) public Date Date (int d, int m, int y) Which of the constructor specifications below will allow this code to behave as desired?


Definitions:

Cash Account

A cash account is a brokerage account that requires the investor to pay the full amount for securities purchased and to receive full delivery of the securities sold.

Two-Column Journal

A fundamental accounting record with two columns used for debits and credits to record financial transactions.

Debit

An accounting entry that increases an asset or expense account, or decreases a liability or equity account. It is positioned on the left side of an account ledger.

Credit

An accounting entry that increases the balance of liabilities and equity accounts or decreases the balance of an asset or expense account.

Related Questions