选项明确开启 选项严格打开 选项推断关闭
Public Class DevelopedPlanetClass
Inherits PlanetClass
Private _GDP As Double
Private _Number As Integer
Public Sub New(DName As String, DNumWages As Integer, DGDP As Double)
MyBase.New(DName, DNumWages)
_GDP = DGDP
_Number += 1 (PROBLEM.... Does not increment when the constructor is called )
End Sub
Public Overloads Function CalcMinWage(GDP As Double) As Double
Return GDP / _Number
End Function
结束班