• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

Inheritance

Hello experts,

Is it possible to make a class member variable accessible to the public, but not inheritable? in VB.net

Thanks
0
caibeier
Asked:
caibeier
1 Solution
 
ZeonFlashCommented:
I don't believe that's possible.  By making a member Public (or Friend or Protected, for that matter), you're allowing any derived classes to inherit the member.  Perhaps if you told us the reasononing behind wanting to make a non-inheritable public member, we suggest work-arounds.
0
 
caibeierAuthor Commented:
I just realized that I don't need to do this, I found a way to work around with it.  But thanks for sharing the knowledge with me. (O:
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now