I have made a class here that has two methods. As you guys can notice, in my two methods that I made, I have listed some arugments in there with parameters. My question is that the variables im using in first method, can they be identical on my second method? Is this ok to do?
public class StudentScore { private int math; private int science; private int calc; private int history; private int pe; //Make a constructor public StudentScore() { math=40; science=40; calc=40; history=40; pe=40; } public void getscore(int m_score,int s_score,int c_score,int h_score,int P_score) { math=m_score; science=s_score; calc=c_score; history=h_score; pe=P_score; } public int Scores(int m_score,int s_score,int c_score, int h_score,int P_score)