I have a base class that is marked as abstract. Is it possible to make a method in that base class only visible to other classes that are inheriting the base class?
Say I have Class1 that is my base class and is marked as abstract. Class2 Inherits Class1 and can make calls to all of it’s public methods. I want Class3 to create an instance of Class2 but not be able to make calls to certain methods of Class1. I tried marking these methods as abstract themselves but then I get an error when Class2 tries to use them. The error is: “…Cannot declare a body because it is marked as abstract”
Why not declare the method
protected?