如何在任何目录的命令提示符中打开 hg?
我试过设置类路径。但没有任何作用..
我需要在目录中的任何位置使用 Hg 如下图所示。

在这个代码中
public class Base {
int length, breadth, height;
Base(int l, int b, int h) {
length = l;
breadth = b;
height = h;
}
}
Run Code Online (Sandbox Code Playgroud)
和
Base(int l, int b, int h) {
this.length = l;
this.breadth = b;
this.height = h;
}
Run Code Online (Sandbox Code Playgroud)
这两个构造函数初始化之间有什么区别?哪种方法是首选?它在内存分配方面有何变化?