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
Solved

Defining procedures: to PROTECTED or not?

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

829 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