Since no constructor is defined by the programmer, Java provides a default constructor for Rectangle class. We know that we need to initialise variables before use, but we did not initialise the variables width and height. Why is there then, no error?
Since no constructor is defined by the programmer, Java provides a default constructor for Rectangle class. We know that we need to initialise variables before use, but we did not initialise the variables width and height. Why is there then, no error?