Thanks Dean, But the reason I think this might be tricky (or may be not) is that I need both derived classes but I dont want one of them to access the method with one parameter. I would love to see the solution for this. Thanks for your time. Sharon
----- Original Message ---- From: Dean Fiala <[EMAIL PROTECTED]> To: [email protected] Sent: Friday, January 27, 2006 3:44:27 PM Subject: Re: [AspNet2] A basic OOP Question You can definitely hide the base method so it is not visible in the derived class. How to do exactly do it is another question, and I need to skeddle for the day and will dig that up later. On 1/27/06, Sharon <[EMAIL PROTECTED]> wrote: > 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 > > [Non-text portions of this message have been removed] > > > > > Yahoo! Groups Links > > > > > > > -- Dean Fiala Very Practical Software, Inc http://www.vpsw.com SPONSORED LINKS Object oriented programming language Object oriented Programming languages YAHOO! GROUPS LINKS Visit your group "AspNet2" 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/

