A
ABC
I have one base class (A) and a derived class (B)
Class A
...
...
...
Public Overrides Function GetText() as string
Return "A" & _text
end function
Public Function GetFormatText() as string
a = GetText()
End function
end class
Class B Inherits A
Public Overrides Function GetText() as string
Return "B" & _text
end function
End Class
When I call B.GetFormatText(), it return like as "A....." not my expected
"B....."
How can I fix it?
Class A
...
...
...
Public Overrides Function GetText() as string
Return "A" & _text
end function
Public Function GetFormatText() as string
a = GetText()
End function
end class
Class B Inherits A
Public Overrides Function GetText() as string
Return "B" & _text
end function
End Class
When I call B.GetFormatText(), it return like as "A....." not my expected
"B....."
How can I fix it?