Ashok9
asked on
Extending two classes in c#
I have two classes A, B
class A
{
member of A;
}
class B
{
member of B;
}
I want a class of type B.
But I need the members of A also in that class.
But in c# we cant extend Both A and B classes.
Is there any way to Get Class A members in my new class.?
other wise i have to duplicate the members and functions of Class A.
Please help me....
class A
{
member of A;
}
class B
{
member of B;
}
I want a class of type B.
But I need the members of A also in that class.
But in c# we cant extend Both A and B classes.
Is there any way to Get Class A members in my new class.?
other wise i have to duplicate the members and functions of Class A.
Please help me....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Those two classes A, B are the framework classes which I am using. I am not supposed to touch any of them.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Its our internal framework. Both are controls basically.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes. I can create any number of classes. But In my new class how do I inherit both of them?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Unexpectedly I cant. because they are not abstract.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help
ASKER