simple question about private data
Hi everyone !
i'm very new to java and I found a this source ( the one below) in internet , but I ' ve a question.
private String surname;
private String name;
private String preferredcolor;
private int age;
public Test(String psurname,String pname,String ppreferredcolor,int page)
why did the compiler use "p" before every variable? is the "p" required, every time I declare a private variable? or he could have written simply (String surname, String name, and so on ?