Examlex

Solved

Problems - Correcting Logic and Code Errors

question 45

Essay

Problems - Correcting Logic and Code Errors
The following sample of code contains errors. Rewrite the incorrect statements to correct all errors.
Public Class Employee
Private _strEmpId As String
Public _decSalary As Decimal
Public Property EmpId As String
Set(ByVal value As String)
_strEmpId = value
End Set
End Property
Public Property Salary As Decimal
Get
Return _decSalary
End Get
Set(ByVal value As Decimal)
Salary = value
End Set
End Property
Public Function New()
_strEmpId = String.Empty
_decSalary = 0
End Sub
End Class


Definitions:

Unearned Revenue Account

A liability account that records payments received for goods or services not yet delivered or performed.

Record Deferral

The process of postponing the recognition of certain income or expenses in the financial records until a later accounting period.

Journal Entries

Records in accounting that document every financial transaction affecting the accounts of a business, used to track and manage financial activities.

Note Payable

A written promise to pay a specified amount of money, typically with interest, by a certain date.

Related Questions