Re: implement problem



Thanks

But the PatientInterface is not abstract, and how do i implement a method,
why cant i declate the whole interface if its not abstract?

Irlan
"Raymond DeCampo" <nospam@xxxxxxxxxxxx> schreef in bericht
news:jiZpe.15865$HT1.15826@xxxxxxxxxxxxxxxxxxxxxxx
> Irlan agous wrote:
>> I have an claass that implements another one
>>
>> public class PatientImpl extends UnicastRemoteObject implements
>> PatientInterface
>>
>>
>> In PatientInterface, i have this class
>>
>>
>> public interface PatientInterface extends Remote
>> {
>>
>> public String getPatientNummer() throws RemoteException;
>> public String getSofiNummer() throws RemoteException;
>> public String getVerzekeringsMa() throws RemoteException;
>> public String getPolisNummer() throws RemoteException;
>> public String getNaam() throws RemoteException;
>> public String getAdres() throws RemoteException;
>> public String getPostCode() throws RemoteException;
>> public String getWoonplaats() throws RemoteException;
>> public String getGebDatum() throws RemoteException;
>>
>> }
>>
>>
>> But i get this error message when i want to implement the interface
>>
>> PatientImpl.java [11:1] PatientImpl is not abstract and does not override
>> abstract method getPostCode() in PatientInterface
>>
>> What is wrong here?
>
> Exactly what the compiler says. Either PatientImpl should be declared
> abstract (probably not what you want) or PatientImpl should contain an
> implementation of the getPostCode() method declared in the
> PatientInterface interface.
>
> Ray
>
> --
> XML is the programmer's duct tape.


.



Relevant Pages

  • implement problem
    ... In PatientInterface, i have this class ... public interface PatientInterface extends Remote ... public String getPatientNummer() throws RemoteException; ...
    (comp.lang.java)
  • Re: implement problem
    ... But the PatientInterface is not abstract, and how do i implement a method, ... public String getSofiNummer() throws RemoteException; ... public String getVerzekeringsMathrows RemoteException; ... public String getPostCode() throws RemoteException; ...
    (comp.lang.java)
  • Re: implement problem
    ... public interface PatientInterface extends Remote ... message that it cant implement an ebstrat method from the interface class ... Irlan ...
    (comp.lang.java)