Solved

Defining procedures: to PROTECTED or not?

Posted on 2007-11-20
3
207 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now