The keyword <code>new</code> is used to
- Acheck_circle
Allocate a new object and call its constructor
- B
Declare a variable
- C
Compare references
- D
Cast a type
Explanation
<code>new ClassName(...)</code> allocates memory and runs constructor.
AP Computer Science A· difficulty 3/5
The keyword <code>new</code> is used to
Allocate a new object and call its constructor
Declare a variable
Compare references
Cast a type
Explanation
<code>new ClassName(...)</code> allocates memory and runs constructor.
Want 10 more like this — adaptive to your weak spots?