which member can a object of class not access
Answers
Answered by
1
Question :-
Which member can a object of class not access?
Answer :-
$ ⇢ $ The members of a class can be directly accessed inside the class using their names. However, accessing a member outside the class depends on its access specifier. The access specifier not only determines the part of the program where the member is accessible, but also how it is accessible in the program.
Answered by
0
Solution :-
Main() method must be specified public as it called by Java run time system, outside of the program. If no access specifier is used then by default member is public within its own package & cannot be accessed by Java run time system.
Remarks :-
Hope u liked my solution
Pls mark me as brainliest
Thanks.
Similar questions
English,
17 days ago
Math,
17 days ago
Social Sciences,
17 days ago
Social Sciences,
1 month ago
Economy,
9 months ago
Math,
9 months ago
Biology,
9 months ago