-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: sujithvarrier
Message 4 in Discussion

  Hi, :)  You are absolutely right that you can access shared methods just using the 
name of the class like Class1.Method1() instead of explicity creating an instance of 
Class1. And about the question why all methods can't be shared..hmmm... I will try to 
explain it...   You may be knowing the fact that we can't access instance entities 
from shared methods.ie. and if u think... is it our requirement that all the objects 
(instances) of Class1 should contain the same data (what i mean is obj1=obj2, where 
obj1 and obj2 are instances of Class1)? if your answer is yes, the entities need not 
be instance entities and it can be shared. In that case it can be accessed from a 
shared method. But then why do we have the concepts of OOPs then...we are moving 
towards pre OOPs years. Its just like writing a peice of code with some global 
variables. Confused? :-( , i am not good at explaining things.   Shared entities just 
share the memory.    As you said, Friend variable is accessible in the assembly where 
it is declared.(Project/Assembly scope) Now about protected friend.... As you know, 
protected variables are visible only in derived classess while A protected friend will 
appear as a friend variable in the same assembly, while it will also be availble to 
Derived classes outside the assembly.   Let me know if you want to be more confused. 
:-((   regards Sujith

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to