Which of these is used as a default for a member of a class if no access specifier is used for it?

Ngô Thị Vân

New member
Which of these is used as a default for a member of a class if no access specifier is used for it?
A. private
B. public
C. public, within its own package
D. protected
 
Answer: a
Explanation: When we pass an argument by call-by-value a copy of argument is made into the formal parameter of the subroutine and changes made on parameters of subroutine have no effect on original argument, they remain the same.
 

Tìm kiếm

Back
Top