Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 19th, 2005, 02:15 PM
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mustoverride and Shared problem

Hi,

I want to make a service class without any istance of it.
I want an interface and an abstract class for this service class, but
if I make a method shared (so I don't need istance) I can't made it
mustoverride :

( Interface Class )
    |
    .
Function A
    .
    |
(Abstract Class) : implements Interface Class
    |
    .
Mustoverride Function A
    .
    |
(Class of service) : inherits Abstract Class
    |
    .
Shared Overriden Function A

With this I got an error that I can't use Shared with Overriden !!

So I solve it with implements Function A in Abstract Class and
use "Shared Shadow Function A" and all works well.
But I want to know if this is correct or there is another best solution.

Sorry my english !!! :(






Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared variable problem in Crystal Reports 8.5 mjk6035 Crystal Reports 1 October 20th, 2008 09:10 AM
Sharepoint 2007 - Shared Services Provider problem MarkS_ORS SharePoint Admin 0 August 17th, 2007 06:53 AM
shared folder marino22 VBScript 1 December 21st, 2005 02:05 PM
Email Problem When Running from Shared Drive Ron Howerton General .NET 7 November 11th, 2004 04:28 AM
shared variable problem narooma.12 Crystal Reports 1 November 2nd, 2004 10:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.