Please do not top post after the reply has been bottom posted.
> 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
>
[quoted text clipped - 33 lines]
>>
>>Ray
Ray

Signature
XML is the programmer's duct tape.
Irlan agous - 09 Jun 2005 21:08 GMT
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
>> Thanks
>>
[quoted text clipped - 63 lines]
>
> Ray
Raymond DeCampo - 09 Jun 2005 23:35 GMT
> Thanks for the pointers!
> You are right, english is not my native language. its dutch actually, hehe.
OK, it helps to know that. I will point out that your English is better
than my Dutch, so we should probably stick to English anyway. :-)
> why cant i declate the whole interface if its not abstract?
>
[quoted text clipped - 8 lines]
> 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
When a class implements an interface one of two conditions must be met.
Either
i) the class provides implementations for every method declared in the
interface, or
ii) the must be declared abstract.
HTH,
Ray

Signature
XML is the programmer's duct tape.