PRO192_-_SU_2024_-_Block_5_-_FE_2618.webp
Quốc Hùng2

PRO192_-_SU_2024_-_Block_5_-_FE_2618.webp

Kizspy | Question: 50
(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
Quốc Hùng2
Ngày thêm
Lượt xem
2,850
Lượt bình luận
15
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom