An object of a class is named or declared by a variable of the class type: ClassName objectIdentifier;The new operator must then be used to create the object and associate it with its variable name: objectIdentifier = new ClassName();These can be combined as follows:

An object of a class is named or declared by a variable of the class type: ClassName objectIdentifier;The new operator must then be used to create the object and associate it with its variable name: objectIdentifier = new ClassName();These can be combined as follows:



Answer: ClassName objectIdentifier = new ClassName(); Example: Person myPerson = new Person();


Learn More :