Skip to main content

New answers tagged

2 votes

Why have private static methods?

“static” and “private” are orthogonal concepts. You want some methods to be static, and others to be instance methods. You want some methods to be private, others to be public. These are independent. ...
gnasher729's user avatar
  • 46.7k

Top 50 recent answers are included