title: Java OOP constants ref or get method
body: <p>I have faced next dilemma: Which one is better, to get prop from directly constants file or to create private prop with getter?</p>
  
  <pre><code>public class Warrior {
      ...
      public void attack() {
          this.setDamage(this.getDamage() + Constants.WARRIOR_DAMAGE_BONUS_POINT);
      }
  }
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>public class Warrior {
      private int damageBonusPoint;
      public Warrior() {
          this.damageBonusPoint = Constants.WARRIOR_DAMAGE_BONUS_POINT;
      }
      public int getDamageBonusPoint() {
          return damageBonusPoint;
      }
      public void attack() {
          this.setDamage(this.getDamage() + this.getDamageBonusPoint());
      }
  }
  </code></pre>
  
  <p>Which one is better and why? What will you recommend?</p>