Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 20, 2012 12:51 PM by BrockAllen
Member
1 Points
7 Posts
Jun 20, 2012 06:55 AM|LINK
Hi....
I have to inherit a class from two different base classes.
could anyone please , provide a solution in term of some design pattern?
All-Star
154852 Points
19855 Posts
Moderator
MVP
Jun 20, 2012 07:01 AM|LINK
C#: https://www.google.co.uk/search?sugexp=chrome,mod=16&sourceid=chrome&ie=UTF-8&q=multiple+inheritance+c%23
VB: https://www.google.co.uk/search?sugexp=chrome,mod=16&sourceid=chrome&ie=UTF-8&q=multiple+inheritance+vb
Jun 20, 2012 07:12 AM|LINK
Dea Mike.
I need a deisgn pattern which could be able to inherit a class from two differnt base classes.
These classes doesn't have any relation with each other. Google provide a solution on same base class.
27516 Points
4897 Posts
Jun 20, 2012 12:51 PM|LINK
.NET doesn't allow multiple inheritance. You can implement more than one interface but you can only have one base class.
mehmoodahmed...
Member
1 Points
7 Posts
Multiple inheritance from two different base classes. (Design Pattern)
Jun 20, 2012 06:55 AM|LINK
Hi....
I have to inherit a class from two different base classes.
could anyone please , provide a solution in term of some design pattern?
Mikesdotnett...
All-Star
154852 Points
19855 Posts
Moderator
MVP
Re: Multiple inheritance from two different base classes. (Design Pattern)
Jun 20, 2012 07:01 AM|LINK
C#: https://www.google.co.uk/search?sugexp=chrome,mod=16&sourceid=chrome&ie=UTF-8&q=multiple+inheritance+c%23
VB: https://www.google.co.uk/search?sugexp=chrome,mod=16&sourceid=chrome&ie=UTF-8&q=multiple+inheritance+vb
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
mehmoodahmed...
Member
1 Points
7 Posts
Re: Multiple inheritance from two different base classes. (Design Pattern)
Jun 20, 2012 07:12 AM|LINK
Dea Mike.
I need a deisgn pattern which could be able to inherit a class from two differnt base classes.
These classes doesn't have any relation with each other. Google provide a solution on same base class.
BrockAllen
All-Star
27516 Points
4897 Posts
MVP
Re: Multiple inheritance from two different base classes. (Design Pattern)
Jun 20, 2012 12:51 PM|LINK
.NET doesn't allow multiple inheritance. You can implement more than one interface but you can only have one base class.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/