Lesson 7

I have a question for the below code

MustInherit Class TaxCalculator
Protected mItemPrice As Double
Protected mTax As Double
' an abstract (MustOverride) function
Public MustOverride Function CalculateTax() As Double
' Two concrete properties
Public ReadOnly Property Tax() As Double
Return Tax
End Get
End Property
Public ReadOnly Property ItemPrice() As Double
Return ItemPrice
End Get
End Property
End Class

Why you didn't write Return mTax, respectively Return mItemPrice ?
Thank you very match for this very well done course.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!