Solved

Defining procedures: to PROTECTED or not?

Posted on 2007-11-20
3
222 Views
Last Modified: 2010-04-15
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 ?
0
Comment
Question by:allanmark
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 125 total points
ID: 20322774
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
 
LVL 37

Assisted Solution

by:samtran0331
samtran0331 earned 125 total points
ID: 20323056
in general, this is called "scope"
http://msdn2.microsoft.com/en-us/library/ms973875.aspx
0
 

Author Comment

by:allanmark
ID: 20323070
Thanks!!!   Me = :)  :)  :)
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question