"Michal Januszczyk" <MichaJanuszczyk@discussions.microsoft.com> a écrit dans
le message de news: 4B0BFA06-1931-41FE-890D-A4E8D4E0F97F@microsoft.com...
| is there any way to make Animal.Foo() being called ??
Try this :
class Animal
{
public void DoFoo()
{
Console.WriteLine("Animal Foo");
}
public virtual void Foo()
{
DoFoo();
}
public void DoSth()
{
Console.WriteLine("Do sth Animal");
//clue: is there any way to make Animal.Foo() being called ??
DoFoo();
}
}
Joanna

Signature
Joanna Carter [TeamB]
Consultant Software Engineer