Had this question in a programming test Consider the Abstract class Weapon. Does the line of code below display any errors? Justify your answer.
Weapon w = new Weapon(42);
This is my answer and the teacher did not consider anything yes, it can not have value inside Weapon
The correct one would be like down here /
Weapon w = new Weapon( );