Solved

Inheritance

Posted on 2006-11-01
2
267 Views
Last Modified: 2010-04-23
Hello experts,

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

Thanks
0
Comment
Question by:caibeier
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
ZeonFlash earned 300 total points
ID: 17852741
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
 

Author Comment

by:caibeier
ID: 17853523
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question