-1
Had this question in a programming test Consider the Abstract Weapon class. Does the code line below present an error? Justify your answer.
Weapon w = new Weapon(42);
That is my answer and the teacher considered nothing yes, can not have value within Weapon
the correct would be as it is down here /
Weapon w = new Weapon( );
The question is whether the line is correct? if
Weapon
is abstract nor has as instantiating soon... I go fromNDA
– rray