asafaa
December 26th, 2006, 04:48 AM
I have two different abstract classes "Translate" and "PaintIt".
In these classes ,some functions are abstract and some aren't (they already defined and will function the same in every class that will inherit from this abstract class).
i have a third class "MyDiary" that have to inherit from these two classes.
as far as i know , multiple inheritance works only with interfaces which are full abstract classes without any defined classes in them.
so the problem is that i can't make the "MyDiary" inherit the two classes "Translate" and "PaintIt".
How do i solve this problem ?
How do i make the "MyDiary" class inherit two other classes that are not interfaces?
In these classes ,some functions are abstract and some aren't (they already defined and will function the same in every class that will inherit from this abstract class).
i have a third class "MyDiary" that have to inherit from these two classes.
as far as i know , multiple inheritance works only with interfaces which are full abstract classes without any defined classes in them.
so the problem is that i can't make the "MyDiary" inherit the two classes "Translate" and "PaintIt".
How do i solve this problem ?
How do i make the "MyDiary" class inherit two other classes that are not interfaces?