Re: implement problem



Thanks for the pointers!
You are right, english is not my native language. its dutch actually, hehe.

why cant i declate the whole interface if its not abstract?

I'm sorry I do not understand this question.

What i mean by this question is.
PatienInterface is declared like this

public interface PatientInterface extends Remote

I dint declare it as an abstract class, so why does it give me the roor
message that it cant implement an ebstrat method from the interface class
It may be a newbie question, sorry, i want to get off this title.hehe

Thanks
Irlan

Irlan

> Irlan agous wrote:
>> Thanks
>>
>> But the PatientInterface is not abstract, and how do i implement a
>> method,
>
> This seems like a very basic question; perhaps English is not your native
> language?
>
> A programmer implements a method by including a body for the method in the
> Java source file. For example:
>
> public class PatientImpl extends UnicastRemoteObject
> implements PatientInterface
> {
> private String postCode;
>
> // What follows is the implementation of the getPostCode()
> // method.
> public String getPostCode()
> {
> return postCode;
> }
> }
>
>> why cant i declate the whole interface if its not abstract?
>
> I'm sorry I do not understand this question.
>
>>
>> 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.
>>
>>
>>
>
> Ray
>
> --
> XML is the programmer's duct tape.


.



Relevant Pages

  • Re: DNS issues after creating a child Zone
    ... Only reason i use the web based thing is i cant access NG from work ... NG but since they changed the interface and split the groups up all ... dont know if u remeber but you helped me a few times back then must be ...
    (microsoft.public.win2000.dns)
  • Re: Comparable interface
    ... >Im currently struggling to covert an existing base class to a comparable ... >interface - i cant find a web page with a good example. ...
    (comp.lang.java.programmer)
  • Re: implement problem
    ... But the PatientInterface is not abstract, and how do i implement a method, ... >> public interface PatientInterface extends Remote ... >> public String getPatientNummer() throws RemoteException; ...
    (comp.lang.java)
  • Re: NIC not working under xen kernel
    ... I am running a normal smp kernel but doesnt work when I boot into xen ... The required module sky2 is getting loaded but it doesnt pick up ... I still cant see the interface eth0. ...
    (Fedora)
  • TAPI event processing problems
    ... we have to do the following to register the TAPI event interface. ... order to obtain an IConnectionPoint to the particular outgoing IID, ... why cant I just define a function with the appropriate cases ...
    (microsoft.public.win32.programmer.tapi)