Q22.webp
ThanhTam81

Q22.webp

Kizspy | Question: 22
(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
ThanhTam81
Ngày thêm
Lượt xem
2,281
Lượt bình luận
8
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom