Soumya Ranjan Padhi wrote:It is true that in java for multiple inheritance we use Interfaces. But are there any special programming scenarios that restricts us while implementing multiple inheritance through interfaces?
Don't quite understand the question, but the only "restriction" I can think of is implementing two or more interfaces with overlapping methods, where they don't all have the same meaning.
And before you ask me if I can provide an example, please SearchFirst (←click). Alternatively, read the tutorials.
Collisions are problems, as Winston said, where
Campbell Ritchie wrote:You cannot implement multiple inheritance in Java (or C#), whether you implement multiple interfaces or not.
Hmmm, I agree with the sentence because of the word "implement", but you can certainly effect multiple type inheritance.
Like most things, it should be used in moderation though.