Java程序实现多重继承
在本文中,我们将了解如何实现多重继承。 Java不支持多重继承。这意味着一个类不能扩展多个类,但我们仍然可以使用关键字“extends”来实现结果。
算法
Step 1 – START Step 2 – Declare three classes namely Server, connection and my_test Step 3 – Relate the classes with each other using 'extends' keyword Step-4 – Call the objects of each class from a main function. Step 5 – STOP登录后复制