Click here to Skip to main content
15,901,035 members
Home / Discussions / C#
   

C#

 
GeneralPublisherIdentityPermission question Pin
Anonymous25-Mar-03 21:29
Anonymous25-Mar-03 21:29 
GeneralXML object in C# Pin
novice.NET25-Mar-03 20:11
novice.NET25-Mar-03 20:11 
GeneralRe: XML object in C# Pin
Don_s25-Mar-03 22:12
Don_s25-Mar-03 22:12 
Generalcascading treeview checkbox changes Pin
vlusardi25-Mar-03 20:10
vlusardi25-Mar-03 20:10 
GeneralRe: cascading treeview checkbox changes Pin
Don_s25-Mar-03 22:23
Don_s25-Mar-03 22:23 
GeneralRe: cascading treeview checkbox changes Pin
vlusardi26-Mar-03 5:48
vlusardi26-Mar-03 5:48 
GeneralNeed some informations Pin
franck_alain25-Mar-03 11:09
franck_alain25-Mar-03 11:09 
QuestionVirutal Functions - new or override? Pin
monrobot1325-Mar-03 6:38
monrobot1325-Mar-03 6:38 
Hi All,

I have a base class and then a class that derives from it. In the base class I have a virutal function. My question: Since the function in the base is virtual why do I still have to provide the new or override keyword? I don't recall having to do this in C++ (although I could be wrong). Which one (new or override) is be better to use? Both fucntions return the same type.

//Just added
I just tried to add the override keyword and get this compiler error: A member marked as override cannot be marked as new or virtual

Isn't this sort of a catch 22 type thing?
When I remove it I get this complier error: ToolTabsCS.ToolTabSplit.InitializeTool()' hides inherited member 'ToolTabsCS.BaseTool.InitializeTool()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.


Thanks.

- monrobot13
AnswerRe: Virutal Functions - new or override? Pin
Marc Clifton25-Mar-03 7:09
mvaMarc Clifton25-Mar-03 7:09 
AnswerRe: Virutal Functions - new or override? Pin
Paul Riley25-Mar-03 7:52
Paul Riley25-Mar-03 7:52 
AnswerRe: Virutal Functions - new or override? Pin
monrobot1325-Mar-03 8:31
monrobot1325-Mar-03 8:31 
Generalvirtual, not virutal Pin
leppie25-Mar-03 10:40
leppie25-Mar-03 10:40 
General.NET Wrapper for SharePoint Portal Pin
kaschimer25-Mar-03 3:53
kaschimer25-Mar-03 3:53 
GeneralRe: .NET Wrapper for SharePoint Portal Pin
David Stone26-Mar-03 12:47
sitebuilderDavid Stone26-Mar-03 12:47 
GeneralDoubt Regarding grid in .NET Pin
shankara_raman25-Mar-03 0:48
shankara_raman25-Mar-03 0:48 
GeneralFTP Uploads Pin
MrEyes25-Mar-03 0:25
MrEyes25-Mar-03 0:25 
GeneralLinking several .net modules into one .dll Pin
VizOne25-Mar-03 0:06
VizOne25-Mar-03 0:06 
GeneralRe: Linking several .net modules into one .dll Pin
Daniel Turini25-Mar-03 2:37
Daniel Turini25-Mar-03 2:37 
GeneralRe: Linking several .net modules into one .dll Pin
VizOne25-Mar-03 8:51
VizOne25-Mar-03 8:51 
GeneralRe: Linking several .net modules into one .dll Pin
leppie25-Mar-03 10:44
leppie25-Mar-03 10:44 
GeneralRe: Linking several .net modules into one .dll Pin
VizOne25-Mar-03 10:55
VizOne25-Mar-03 10:55 
GeneralRe: Linking several .net modules into one .dll Pin
leppie26-Mar-03 7:13
leppie26-Mar-03 7:13 
Generalone client, many servers Pin
novice.NET24-Mar-03 23:53
novice.NET24-Mar-03 23:53 
QuestionTCP, channels, sockets sync or async ? Pin
nahumtakum24-Mar-03 23:06
nahumtakum24-Mar-03 23:06 
AnswerRe: TCP, channels, sockets sync or async ? Pin
Anonymous25-Mar-03 7:08
Anonymous25-Mar-03 7:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.