Define Anonymous object

Anonymous object: An object formed without an identifier. They are generally formed as array elements, actual arguments or method outcomes. For example:

    private Point[] vertices = {
        new Point(0,0),
        new Point(0,1),
        new Point(1,1),
        new Point(1,0),
    };

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.