Disabling an inherited member 
Author Message
 Disabling an inherited member

Is there any way to hide or disable a member (Property or Method) from an
inherited class?  Or does that fundamentally break the OO rules of
inheritance.

Thanks...
--
Phil (New Zealand)



Tue, 13 Jul 2004 05:45:49 GMT  
 Disabling an inherited member

Quote:
> that fundamentally break the OO rules of
> inheritance.

But...

If the method is overridable then you can do this...

Override Sub DaMethod()
    Throw New NotSupportedException()
        Or
    Throw New NotImplementedException()
End Sub

--
Jonathan Allen

.Net Wish List Site: http://jonathan.cloverlink.com/


Quote:
> Is there any way to hide or disable a member (Property or Method) from an
> inherited class?  Or does that fundamentally break the OO rules of
> inheritance.

> Thanks...
> --
> Phil (New Zealand)



Tue, 13 Jul 2004 06:08:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. nested class inherits containing class accessing private instance members

2. MSDN Members Helping Members criticism

3. For a bind combo box with display member and value member set

4. Language Suggestion: Default member for single-member structures

5. copy collection member’s data to another member

6. Enumerate Local Group Members and Identify Domain of Members

7. How to copy an object to another member by member

8. How to design a class that inherit members from another class?

9. disabling the DISABLE/ENABLE macros menu on opening spreadsheet

10. disable the enable/disable macro message

11. window task bar and desktop disable or all icon disable

12. disable close button without disabling make small button

 

 
Powered by phpBB® Forum Software