customer.vb
来自「介绍vb.net的一本很好的英文资料,深入浅出,值得一读」· VB 代码 · 共 42 行
VB
42 行
' Static Model
Public Class Customer
Public Email As String
Public Password As String
Public FirstName As String
Public LastName As String
Public Address As String
Public Company As String
Private CustomerID As Integer
' Attempts to login a customer and retrieve their details based on e-mail address and password.
Public Function LogOn (ByVal Email As String, _
ByVal Password As String) As Boolean
End Function
' Adds a new customer to the database based on the input parameters.
Public Function AddCustomer (ByVal Email As String, _
ByVal Password As String, _
ByVal FirstName As String, _
ByVal LastName As String, _
ByVal Company As String, _
ByVal Address As String) As Integer
End Function
' Returns the customer details based on the CustomerId received.
Public Sub GetDetails (ByVal CustomerID As Integer)
End Sub
End Class ' END CLASS DEFINITION Customer
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?