الرجوع
تسجيل الدخول

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");
    }
}