H
Hadi
Hello,
Say I have three classes inheritance A <-- B <-- C
And in A I have the Create method:
class A
{
public override bool Create()
{
// do stuff
return true;
}
}
class B : A
{
public override bool Create()
{
if (!base.Create())
{
return false;
}
// do stuff.
return true;
}
}
Now in class C
class C : B
{
public override bool Create()
{
// Here I need to access A.Create not B.Create()
}
}
}
Now the problem in C I want to access A.Create() not B.Create() is this
possible? Because calling base.Create() will call B.Create().
I need to do this weird inheritance because C shares a lot of methods, and
logically extends B .. but in creation C is totally different from B.
Thanks for any help.
Hadi
Say I have three classes inheritance A <-- B <-- C
And in A I have the Create method:
class A
{
public override bool Create()
{
// do stuff
return true;
}
}
class B : A
{
public override bool Create()
{
if (!base.Create())
{
return false;
}
// do stuff.
return true;
}
}
Now in class C
class C : B
{
public override bool Create()
{
// Here I need to access A.Create not B.Create()
}
}
}
Now the problem in C I want to access A.Create() not B.Create() is this
possible? Because calling base.Create() will call B.Create().
I need to do this weird inheritance because C shares a lot of methods, and
logically extends B .. but in creation C is totally different from B.
Thanks for any help.
Hadi