As a Correction the method names are the same. 
 
BaseClass
{
public Method1(a,b)
public Method1(a)  <------- This one should not be accesible when accessed by 
Derivedclass2
}
 
Derivedclass1 : Baseclass
{
}
 
Derivedclass2 : Baseclass
{
}
 
Sorry about the mistake.
Thanks
Sharon

----- Original Message ----
From: Sharon <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; "[email protected]" 
<[email protected]>; "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; "[EMAIL 
PROTECTED]" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; 
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]" <[EMAIL 
PROTECTED]>; "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Friday, January 27, 2006 3:22:55 PM
Subject: [ASP-Net] A basic OOP Question


Hi All,
This is the format of classes I Have.
 
BaseClass
{
public Method1(a,b)
public Method2(a)
}
 
Derivedclass1 : Baseclass
{
}
 
Derivedclass2 : Baseclass
{
}
 
I want Derivedclass2 not to use the method2 from the base class. In other words 
anyone using Derivedclass2 should not have access to method2. I am convinced on 
my end that it cannot be achieved but I was proved wrong more then once, So I 
am here for second opinions. 
 
All Help is Great Help
 
Sharon


============================================
What ever happend to your old car? Find out http:://www.findmyoldcar.com
============================================

ind out http:://www.findmyoldcar.com
============================================






SPONSORED LINKS 
Asp email Asp component Computer internet security 
Asp pdf Computer internet training Asp net 





YAHOO! GROUPS LINKS 


 Visit your group "ASP-Net" on the web.
  
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
  
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 

[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNet2/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to