Q24.webp
Đ

Q24.webp

Kizspy | Question: 24
(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
Đức Thành1
Ngày thêm
Lượt xem
1,557
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom