A private method is a class method that's only callable from within the declaring class. Test-induced design damage or why TDD is so painful. The CalculateSal method first checks whether the number of working days is valid or not using the private method isValidWd. The way it is now makes me think that there must be some special class somewhere in this package that is allowed to create an instance. If you try to access one from the outside, your code simply won't compile!
nest...