⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bankaccount.vb

📁 OOP With Microsoft VB.NET And Csharp Step By Step
💻 VB
字号:
Public Class BankAccount
    Protected m_owner As String
    Public Overridable ReadOnly Property ID() As String
        Get
            Return m_owner
        End Get
    End Property

    Private m_balance As Decimal
    Public ReadOnly Property Balance() As Decimal
        Get
            Return m_balance
        End Get
    End Property

    Public Sub New(ByVal owner As String)
        m_owner = owner
        m_balance = 0D
    End Sub

    Public Function Deposit(ByVal amount As Decimal) As Decimal
        m_balance += amount
        Return m_balance
    End Function

    Public Overridable Function Withdraw(ByVal amount As Decimal) As Decimal
        m_balance -= amount
        Return m_balance
    End Function


End Class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -