Re: Call root base method from doubly derived class?
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 Dec 2005 15:01:22 -0500
DrBonzo,
No, there isn't. B would have to expose a method which would expose the
base method of A, without doing anything else.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"DrBonzo" <DrBonzo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:735B045B-52E9-43C5-86AA-0482CB9D2E98@xxxxxxxxxxxxxxxx
> Given
>
> public class A {
> virtual void foo() { ... }
> }
>
> public class B : A {
> public override void foo() { ... }
> public Bthingy() { ... base.foo() ...}
> }
>
> public class C : B {
> public override void foo() { . . . }
> public Cthingy() { ... base.foo() ... }
> }
>
>
> Bthingy's 'base.foo()' calls class A's foo.
> Cthingy's 'base.foo()' calls class B's foo.
>
> Is there a way for Cthingy to call the class A foo?
>
.
- Prev by Date: Re: iterating through a collection containing different types of numeric values and adding a specified number to the values.
- Next by Date: Re: Call root base method from doubly derived class?
- Previous by thread: How to catch Console window content from windows project?
- Next by thread: Re: Call root base method from doubly derived class?
- Index(es):
Relevant Pages
|