PRO192_-_SU_2025_-_QUIZ2_3925.webp
Hữu Vinh

PRO192_-_SU_2025_-_QUIZ2_3925.webp

Question 15
Answer saved
Flag
question
class Animal {
}
1 usage 1 override
void makeSound() {
}
1 usage
System.out.println("Animal makes a sound");
Eclass Dog extends Animal {
1 usage
void makeSound() {
}
System.out.println("Dog barks");
public class Main {
public static void main(String[] args) {
Animal myPet = new Dog();
myPet.makeSound();
Time
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Hữu Vinh
Ngày thêm
Lượt xem
325
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom