During a phone interview today I was asked the question, "In Java, can a class extends from more than one class?". In correctly answered "no" since I remembered it from my many encounters with the word extends and how to use it to inherit the properties and methods from the parent class.
Consider this diagram:
Multiple inheritance is a problem that occurs when classes B and C inherit from class A, and the D inherits from both B and C. This creates an "ambiguity", and can be seriously problematic for the developer. This is situation is actually possible in languages that support multiple inheritance (like C++), but doing this is pretty much always advised against.
The posts on this site are written and maintained by Jim Lynch. About Jim...