1. Multiple Inheritance

If asked in a technical interview, could you explain or write code showing why Swift doesn't support multiple inheritance? What's the alternative?

Hints

Even though the concept of multiple inheritance was once considered a must-have feature in languages such as C++, most modern programming languages like Java and Swift only support single inheritance. As part of your analysis, can you think of why is no longer used?