Solved

Inheritance

Posted on 2006-11-01
2
264 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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