Accessing from an Abstract Class
<pre><code>public abstract class Password  {
private String password;
private final static String ENCRYPTION_METHOD;

static  {
ENCRYPTION_METHOD = "CLEAR TEXT";
    }

public Password(String password)    {
    password = password;

}

public String getPassword() {
    return password;
}

public boolean matches (String aString) {
    if (aString.equals(password))   {
        return true;    }

        else    {
            return false;   }
        }

public String toString()    {
    return password;
}

public static String getEncryptionMethod()  {
    return ENCRYPTION_METHOD;
}

abstract String decrypt();
</code></pre>

<h2>      }</h2>

<pre><code>  public class EncryptedPassword extends Password   {
private final static String ENCRYPTION_METHOD;

static  {
ENCRYPTION_METHOD = "PERMUTATION";
    }

public EncryptedPassword(String password)   {
    super(password);
}


public boolean matches (String aString) {
    if  (aString.equals("True"))    {
            return true;    }

            else    {
            return false;   }
                }

public String toString()    {
    return "Password: " + super.toString();
}


public String decrypt() {

    return password;
}

public static String getEncryptionMethod()  {
    return ENCRYPTION_METHOD;
}
</code></pre>

<p>}</p>

<p>Hi, i was wondering if you guys knew how I return my password on my EncryptedPassword class, but still by keeping it concrete and keeping my Password class Abstract. Is there any basic way of doing it. Also, sorry for the terrible formatting..</p>
