对一语句不太理解,主指导?
从面向对像的角度,大家帮我分析一下,下面的语句,我有些不理解?多谢!
class PopupAuthenticator extends Authenticator{
public PasswordAuthentication getPasswordAuthentication()
{
String username,password;
username="123";
password="123";
return new PasswordAuthentication(username,password);
}
}
........
Authenticator auth=new PopuAuthenticator();