PC Review


Reply
Thread Tools Rate Thread

Calling overriden base method

 
 
=?Utf-8?B?UHJpdGh2aXM=?=
Guest
Posts: n/a
 
      3rd Mar 2005
My class hierarchy is something like C1 -> C2 -> C3 and in C3 I override a
method from C2 which in turn has overriden this method from C1, is there a
way to call C1's version of the method? This would be something like
base.base.MethodName() or C1.MethodName().

It would be a great help if anyone can suggest anything on this.

 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      3rd Mar 2005

>My class hierarchy is something like C1 -> C2 -> C3 and in C3 I override a
>method from C2 which in turn has overriden this method from C1, is there a
>way to call C1's version of the method? This would be something like
>base.base.MethodName() or C1.MethodName().


It depends on which language you're using. You can't do it in C#.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CLI and calling the base method from the derived method DaTurk Microsoft VC .NET 2 11th Jul 2007 11:29 PM
Base Method Calling Child Methods =?Utf-8?B?cmFuZHkxMjAw?= Microsoft C# .NET 1 4th Apr 2007 12:45 AM
How to get calling object type in static method of Base Class Mirek Endys Microsoft C# .NET 5 24th Mar 2006 07:08 AM
calling the method of a base class by reflection =?Utf-8?B?bWFyazEz?= Microsoft Dot NET Framework Forms 2 9th Aug 2004 12:53 PM
Calling base for an inherited method? Dave Veeneman Microsoft C# .NET 5 14th Jun 2004 05:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:22 PM.