Bellow I have some code and I was interested in understanding why this method works when it is static? I expected the opposite


public class demo {
int no;

demo(int no){
this.no=no;
}