Computer Science, asked by DhyanPatel001, 8 months ago

What is the syntax to create an object with an example ?

Answers

Answered by tapatidolai
2

Answer:

Declaration: The code set in bold are all variable declarations that associate a variable name with an object type. Instantiation: The new keyword is a Java operator that creates the object. Initialization: The new operator is followed by a call to a constructor, which initializes the new object.

Answered by bhaiyu62
0

Answer:

Declaration : The code set in bold are all variable declarations that associate a variable name with an object type. Instantiation: The new keyword is a Java operator that creates the object. Initialization: The new operator is followed by a call to a constructor, which initializes the new object.

Similar questions