Skip to content
Discussion options

You must be logged in to vote

Inheritance represents an "is a" relationship, so the child type is required to support all of the functionality and contract of the parent type. At best you could override the members and use attributes to hide them from the IDE, and perhaps also write an analyzer that would emit an error if someone attempting to consume that method directly, but you could never prevent someone from upcasting to the base class and consuming those members.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by el1b0t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants