How much inheritance does C++ have, and why does java only have a single inheritance?
Java can implement multiple interfaces, but only extend one class. This is because Java is an object-oriented language. The original design principle of Java is to imitate everything in time. For example, a son can only inherit one Laozi, but not multiple Laozi. This is logical in the world.