Defining procedures: to PROTECTED or not?

Greetings

At last, thanks to the help of many experts I am getting to the stage where I need to start developing functions/procedures to implement  my application's functionality.

I woudl like to understand the PROTECTED VOID MyProc vs  VOID My Proc. WHAT IS CORRECT AND WHY ?
allanmarkAsked:
Who is Participating?
 
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
when you define a protected method, this method could be used just by the self-class methods, and by other method in derived classes. You can not use it from outside the class.
when you not define an accessibility modifier, it is assumed to be private by default, so derived classes cannot have access to this method, just self-class methods.
0
 
samtran0331Connect With a Mentor Commented:
in general, this is called "scope"
http://msdn2.microsoft.com/en-us/library/ms973875.aspx
0
 
allanmarkAuthor Commented:
Thanks!!!   Me = :)  :)  :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.