PRO192_-_FA_2024_-_Block_5_-_FE_3237.webp
plum_blossom1

PRO192_-_FA_2024_-_Block_5_-_FE_3237.webp

Kizspy | Question: 28
(Choose 1 answer)
Consider a superclass with a private method and a subclass that attempts to override it. What happens in terms of method overriding and access control?
A. The subclass can successfully override the private method.
B. The private method cannot be overridden in the subclass.
C. The subclass can override the private method, but only if it is declared as "protected" in the superclass.
D. The subclass can override the private method, but only if it is declared as "public" in the superclass.
E. The subclass can override the private method, but only if it is declared as "static" in the superclass.
F. The access modifier of the superclass method has no impact on method overriding.
FUOVERFLOW

Thông tin

Category
PRO192
Thêm bởi
plum_blossom1
Ngày thêm
Lượt xem
3,572
Lượt bình luận
9
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom