203k views
5 votes
If you want to code a method that can only be called from the class that the method is in, you code ____________________ as the access modifier in the method declaration.

User Anand S
by
3.9k points

2 Answers

2 votes

Answer:

private

Step-by-step explanation:

If you want to code a method that can only be called from the class that the method is in, you code private as the access modifier in the method declaration.

User Hastalavistababyml
by
5.4k points
2 votes

Answer:

If you want to code a method that can only be called from the class that the method is in, you code private as the access modifier in the method declaration.

Step-by-step explanation:

User Doina
by
4.6k points