Solved

Inheritance

Posted on 2006-11-01
2
261 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
2 Comments
 
LVL 17

Accepted Solution

by:
ZeonFlash earned 300 total points
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now