question about overriding methods
So basically i created a class called "Skills" with a field double skilldamage..and created 3 methods with following names Skill1 ,Skill2 Ultimate.. each of methods return a amount of Skilldamage and a Text Messeage.. so is there any way to override these methods inside Skills class without using inheritance.. I want to use this class as a field in a Hero class so it can inherit this skills .. code: public class Skills { private double Skilldamage; public double Skill1(double SkillDamage) { System.out.println("Dummy Skill"); this.Skilldamage = SkillDamage; return SkillDamage; } public double Skill2(double SkillDamage) { System.out.println("Dummy Skill 2"); this.Skilldamage = SkillDamage; return SkillDamage; } public double Ulimate(double SkillDamage) { System.out.println("Ultimate Skill"); return SkillDamage; } }