Solved

Inheritance

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

Technology Partners: 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!

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

740 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