I have three public method in base class. When i inherit the base class to derived class, the three public method should not get accessed.
How to achieve this?
Can someone hep me out to find answer for this?
I have three public method in base class. When i inherit the base class to derived class, the three public method should not get accessed.
How to achieve this?
Can someone hep me out to find answer for this?
According to basic OOP.
If a class have some methods and you inherit that base class to derived class. You can do override these methods BUT. You can only maintain it's accessibility or you can improve it.