PRO192_-_SU_2024_-_FE2_2332.webp
Nanami871

PRO192_-_SU_2024_-_FE2_2332.webp

Kizspy | Question: 21 (Choose 1 answer)
Which of the following is an example of encapsulation in Java?
A. Creating a private field and providing public getter and setter methods
B. Creating a public field and directly accessing it from other classes
C. Creating a protected field and accessing it from subclasses only
D. Creating a default (no modifier) field and accessing it from the same package

Thông tin

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

Share this media

Back
Bên trên Bottom