I have one class that inherits another class. The base class has some private variables, but it also has public methods that access those variables. Is there anyway that I could make it so those methods aren't inherited, while at the same time, keeping them accessable? Here's an example, in case I'm not making sense
Private loginCheck as Boolean
...
Public Function getLoginCheck() as Boolean
Return loginCheck
End Function
...
Public Sub setLoginCheck(ByVal iLoginCheck as Boolean)
loginCheck = iLoginCheck
End Sub
This is from the base class. So the derived class has no loginCheck variable, but still has the getLoginCheck and setLoginCheck methods. Is there anyway to fix that, or do I have to override those methods in the derived class and declare them private?
Private loginCheck as Boolean
...
Public Function getLoginCheck() as Boolean
Return loginCheck
End Function
...
Public Sub setLoginCheck(ByVal iLoginCheck as Boolean)
loginCheck = iLoginCheck
End Sub
This is from the base class. So the derived class has no loginCheck variable, but still has the getLoginCheck and setLoginCheck methods. Is there anyway to fix that, or do I have to override those methods in the derived class and declare them private?