can anyone explain this "Yellow yellow = new Yellow();" clearly what happen other than creating object
You must be signed in to leave a comment
13 November 2018, 13:00
Other than creating the object yellow, the default constructor(no argument constructor) is called. And what ever is there in the constructor, it gets executed.