InterviewSolution
Saved Bookmarks
| 1. |
How do you test a "protected" method? |
|
Answer» When a method is declared as "protected", it can only be accessed within the same package where the class is defined. Hence to test a "protected" method of a target class, define your test class in the same package as the target class. |
|