Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | bgegg |
i have question about extends
1:Can parents not extend their children?
for example,node2d can not extend sprite class ,but CanvasItem and Node and Object can it.
Although only upper classes can be extended, node2d can already use canvasitem, node, object properties and methods. What does it mean to extend?
2:Do the node types and the extends statement have to match?
Should I write “extends Node2D” in node2d node?
3:Why can I use position2d when inheriting canvasitem? position2d is a child of canvasitem.
please tell me.