تفاصيل العمل

This task demonstrates the use of interfaces in Java. The drawable interface defines abstract and default methods, while classes circle and square implement it by overriding the draw() method. In the Main class, polymorphism is applied by creating objects of different shapes through the drawable interface.

بطاقة العمل

اسم المستقل
عدد الإعجابات
0
عدد المشاهدات
6
تاريخ الإضافة