Suppose I have a class
i want to inherit A to class B & C
How can I write the class A so that I can access Foo() by object of class B but by C object Foo() will be unavailable.Is it possible?.
Code:
class A
{
public void Foo()
{
}
}
Code:
class B:A
{
}
class C:A
{
}
Comment