Computer Science, asked by vikash7828, 5 months ago

If an attribute is private, which methods
have access to it?​

Answers

Answered by shashwat05
0

Answer:

Methods, Variables and Constructors that are declared private can only be accessed within the declared class itself. Private access modifier is more secure and restrictive access level, whereas class and interfaces cannot be private.

Similar questions
Math, 5 months ago