|
-
September 9th, 2004, 11:10 AM
#1
OOP problem with vb.
I'm working on a form that inherits from system.windows.forms.form
and I actually want to Overload the show sub.
In other word.. I want to force programmers that uses my class to call the showdialog and cannot call the show one. I want for example make sure that it doesn't compile when the programmer try to use show. For example :
in C++ if you want to disable the Default constructor you just put the default constructor under private
I would like to do that. But instead, VB resolve to Higher class which is not what I would like to see as correct behavior in an OOP.
is there anyway to do what I want ?
Make sure show for my class is unreachable compilation time.
Nicolas Bohemier
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|