} public String status() { return “Color of bread is”+this.color+” and toaster is “+this.hasToased; } public static void main(String[] args) { //creating object of toasterclass Toaster t=new Toaster(); //calling methods System.out.println(t.status()); t.toast();
}<br/> public String status()<br/> {<br/> return “Color
of bread is”+this.color+” and toaster is “+this.hasToased;
}
public static void main(String[] args)
{
//creating object of toasterclass
Toaster t=new Toaster();
//calling methods
System.out.println(t.status());
t.toast();
System.out.println(t.status());
}
}
// How is string status connecting to void main?
//what is t.toast is for?
// can you explain the purpose of status?
// can’t you get same result by copying the return value and pasting it in printin? if so what’s the difference.
//plz break down dummy style