الرجوع
تسجيل الدخول
هذه نسخة مؤرشفة قديمة من الموقع انتقل إلى كاتوديمي ←

Which statement is correct about the Parrot class?

class Bird {
    void fly() {
        System.out.println("Flying");
    }
}

class Parrot extends Bird {
    void speak() {
        System.out.println("Speaking");
    }
}