what is a protected int csharp

Code Example - what is a protected int csharp

                
                        protected is useful when you want your class and all derived (child) classes to be able to access the method or variable, but you don't want it to be public.