Академический Документы
Профессиональный Документы
Культура Документы
Class Employee
End Class
Module Module1
Public Sub Main()
End Sub
End Module
Imports System
Class Employee
End Class
Module Module1
Public Sub Main()
Dim manager As Manager
manager = New Manager()
manager.PrintSalary()
End Sub
End Module
Creating Methods
Imports System
Module Exercise
Class TRectangle
Public Length As Double
Public Height As Double
Sub Main()
Dim Recto As New TRectangle
Dim Perimeter As Double
Dim Area As Double
Console.WriteLine()
Console.WriteLine("Rectangle Characteristics")
Console.WriteLine("Length: {0}", Recto.Length)
Console.WriteLine("Height: {0}", Recto.Height)
Console.WriteLine("Perimeter: {0}", Recto.Perimeter)
Console.WriteLine("Area: {0}", Recto.Area)
Console.WriteLine()
End Sub
End Module
Module Exercise
Sub Main()
Dim dptStore As DepartmentStore = New DepartmentStore
Console.WriteLine()
Console.WriteLine(" =#= Department Store =#=")
Console.WriteLine(" --- Store Inventory ---")
dptStore.ShowItem()
End Sub
End Module
Create a method that takes arguments
Imports System
Module Exercise
Class DepartmentStore
Public ItemNumber As Long
Public ItemName As String
Public UnitPrice As Double
Sub Main()
Dim dptStore As DepartmentStore = New DepartmentStore
End Module
oWrite.Close()
oRead = oFile.OpenText(-C:\sample.txt")
intSingleChar = oRead.Read()
cSingleChar = Chr(intSingleChar)
End While