how will you declacre an object for class sc 1
Answers
Answered by
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
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
Science,
2 months ago
Math,
2 months ago
Biology,
5 months ago
Physics,
10 months ago
World Languages,
10 months ago