Rewriting said method,We come back to look at the inheritance tree:
This should look okay,We can create an instance of the sword,Create an instance of a pistol ......
But if I have to write it?
1 |
var 武器 = 武器() |
So the question is:excavator……
Do not,Our problem is "weapon" in the end is what?
We say "animal",Man is an animal,Birds are animals,dog、Cats are animals,That there is no animal animals?
The answer is no[……]