public class Test{ public static void main(String[] args){ Child child = new Child(); } } class Parent{ public Parent(){ super(); show();//this.show(); 因为是Child类对象调用了super()来构造其父类的部分;所以父类中的this(随着其构造方法入栈的)是指向Child类对象的!所以调用的就是Child类对象的show方法! return ;
消息结构说明nav_msgs/Path.msg结构#An array of poses that represents a Path for a robot to followHeader headergeometry_msgs/PoseStamped[] poses123geometry_msgs/PoseStamped.msg结构# A Pose with reference coordinate frame and timestampHeader headerPose pose123geo