Abstract class: Single Constructor, access modifier?
I have the following piece of code:
public abstract class Foo
{
protected Foo()
}
Is there a difference in inheritance between using protected as an access modifier or public?
Mostly I've seen use of protected in this case. So, is there a difference and why do people enjoy protection over the public?
+3
source to share