Computer Science, asked by rajendratigga380, 5 months ago

how will you declacre an object for class sc 1​

Answers

Answered by rakeshaade380
0

Explanation:

Creating an Object

Declaration − A variable declaration with a variable name with an object type.

Instantiation − The 'new' keyword is used to create the object.

Initialization − The 'new' keyword is followed by a call to a constructor. This call initializes the new object

Answered by mankirai3gmailcom
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