can anyone explain this "Yellow yellow = new Yellow();" clearly
what happen other than creating object
rainbow
Resolved
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
P.B.Kalyan Krishna
13 November 2018, 13:00solution
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.
+3