Calling the parameterized constructor worked fine but when trying to call a method it showed me this error :
Cannot find symbol Symbol: method getPassword() Location: