Zdravim, potreboval bych vedet, ten konstruktor 1 odkazuje na konstruktor 2 nebo naopak, jak to chapat.
Dekuju
public class User {
private String username;
private String password;
//Konstruktor 1
public User(){
this("username", "password");
}
//Konstruktor 2
public User(String username, String password) {
this.username = username;
this.password = password;
}