PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
T

PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp

(Choose 1 answer)
Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct?
A. This method is only accessible from inside the class itself and from inside all subclasses.
B. In a class, you cannot declare methods with a lower visibility than the visibility of the class in which it is defined.
C. From within protected methods you do not have access to public methods.
D. This method is accessible from within the class itself and from within all classes defined in the same package as the class itself.

  • Like
Reactions: bách

Thông tin

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

Image metadata

Filename
PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
File size
234 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom