I'm not entirely sure how to word the question properly in google without returning this.instanceVar, so any and all help is sincerely appreciated.
public class PracticeThis {
private String str;
public PracticeThis(){
//What is "this" referring/doing??
this("pizza Rulez");
}
public PracticeThis(String str){
this.str = str;
}
public void practiceMyThisKnowledge(){
String str = "Who says pizza rulez?";
System.out.println(str);
//Not sure how "this" is interacting here;
System.out.println(this);
}
@Override
public String toString(){
return "According to practiceThis: " + str;
}
}