Defualt Constructor :
Sub New()
End Sub
Overload Constructor :
Sub New(ByVal Name As String, ByVal Salary As String)
_Name = Name
_Salary = Salary
End Sub
Proerty :
Public Property Salary() As Decimal
Get
Return _Salary
End Get
Set(ByVal value As Decimal)
_Salary = value
End Set
End Property
ReadOnly Property :
Public ReadOnly Property Id() As Decimal
Get
Return _ID
End Get
Add New Employee :
Dim Emp1 As Employee = New Employee
Add New Employee using Constructor Overloading :
Dim Emp1 As Employee = New Employee("Employee1","10000")
To add List of Employee :
Dim EmployeeList As List(Of Employee)
EmployeeList.Add(Employee1)
To display every Employee in EmployeeList :
For Each item In EmployeeList
MessageBox.Show(item.ToString())
Next
Last question is wrong.While Form Loaded no function is called only it's constructor will be called or Form_Load gets called bt it is not a function.It's an Event :)