-2
Module Module1
Class Arithmetical
Public Function Subtract(ByVal a As Integer, ByVal b As Integer)
Return a - b
End Function
End Class
Sub Main()
Dim objArithmetical As New Arithmetical()
Console.WriteLine(objArithmetical.Subtract(80, 27))
Console.ReadKey()
End Sub
End Module
我該如何實現一個構造函數?我是新來的這種編碼和語言(VB.NET)任何東西將不勝感激。如何實現構造函數?
謝謝