Solved

Defining procedures: to PROTECTED or not?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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!
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

911 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

22 Experts available now in Live!

Get 1:1 Help Now