Posts by Davi Leal • 26 points
1 post
-
1
votes1
answer78
viewsA: Weapon w = new Weapon(42); is that correct?
In fact the two modes are incorrect because an abstract class cannot be instantiated. An abstract class (in the Weapon case) is only a class model that other classes will inherit.
structured-programminganswered Davi Leal 26