Computer Science, asked by harsh12kanwal, 1 month ago

which member can a object of class not access​

Answers

Answered by FleurxExotica
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 mehulkumarvvrs
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