|
 |
aspx_beginners thread: Re: Public, Protected, Private
Message #1 by "Chris Bagby" <cbagby@e...> on Wed, 4 Dec 2002 18:56:33
|
|
This was not intended to actually be a book-specific question, I just used
the book's example as an illustration of what was confusing to me. Maybe
I was bit unclear about what I was actually trying to find out -- a little
more detail on the distinction between (and usage of) PRIVATE vs PROTECTED
(my main question being why might they be used outside of an explicit
class definition). I'm more concerned that maybe I'm missing a big
picture issue, and not necessarily looking for the exact reasons it was
used in the book.
> Please note the information regarding book specific support questions in
t> he P2P FAQ. I would like to explain the Wrox support process. If you
w> ish to directly query a problem in the book with an expert who knows
the
b> ook in detail then e-mail support@w... , with the title of the book
a> nd the last four numbers of the ISBN in the subject field of the e-
mail.
P> lease also confirm the software that you are using (include versions /
e> ditions / service packs etc.). Please specify whether you are
receiving
a> ny error messages (or a description of what is happening on your screen
a> s opposed to what is being described in the book)
> Phil Perks
T> echnical Support Manager
W> rox Press
h> ttp://www.wrox.com/
> > I was going through the MyCalendar example in Ch.14 of Beginning
ASP.NET
1> > .0 with VB.NET and I got a bit sidetracked. The example uses
Protected
S> > ubroutines and Private Functions (inside a single script block). I
was
w> > ondering what the purpose/reasoning behind this might be (pages 516-
519
a> > re the pages in question).
> > Without an explicit Class definition, why would Protected or Private
be
u> > sed for Sub/Functions? I want to say this has to do with the aspx
page
b> > eing converted into a class definition, but for some reason it just
d> > oesn't click as to why this would matter. Maybe I'm just fuzzy in
g> > eneral on the distinction/usage for Protected and Private. Any help
w> > ould be appreciated.
|
|
 |