I have an claass that implements another one
public class PatientImpl extends UnicastRemoteOb ject implements
PatientInterfac e
In PatientInterfac e, i have this class
public interface PatientInterfac e extends Remote
{
public String getPatientNumme r() throws RemoteException ;
public String getSofiNummer() throws RemoteException ;
public String getVerzekerings Ma() 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.jav a [11:1] PatientImpl is not abstract and does not override
abstract method getPostCode() in PatientInterfac e
What is wrong here? 5 4504
Irlan agous wrote: I have an claass that implements another one
public class PatientImpl extends UnicastRemoteOb ject implements PatientInterfac e
In PatientInterfac e, i have this class
public interface PatientInterfac e extends Remote {
public String getPatientNumme r() throws RemoteException ; public String getSofiNummer() throws RemoteException ; public String getVerzekerings Ma() 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.jav a [11:1] PatientImpl is not abstract and does not override abstract method getPostCode() in PatientInterfac e
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
PatientInterfac e interface.
Ray
--
XML is the programmer's duct tape.
Thanks
But the PatientInterfac e is not abstract, and how do i implement a method,
why cant i declate the whole interface if its not abstract?
Irlan
"Raymond DeCampo" <no****@twcny.r r.com> schreef in bericht
news:ji******** ***********@twi ster.nyroc.rr.c om... Irlan agous wrote: I have an claass that implements another one
public class PatientImpl extends UnicastRemoteOb ject implements PatientInterfac e
In PatientInterfac e, i have this class
public interface PatientInterfac e extends Remote {
public String getPatientNumme r() throws RemoteException ; public String getSofiNummer() throws RemoteException ; public String getVerzekerings Ma() 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.jav a [11:1] PatientImpl is not abstract and does not override abstract method getPostCode() in PatientInterfac e
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 PatientInterfac e interface.
Ray
-- XML is the programmer's duct tape.
Please do not top post after the reply has been bottom posted.
Irlan agous wrote: Thanks
But the PatientInterfac e 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 UnicastRemoteOb ject
implements PatientInterfac e
{
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" <no****@twcny.r r.com> schreef in bericht news:ji******** ***********@twi ster.nyroc.rr.c om...
Irlan agous wrote:
I have an claass that implements another one
public class PatientImpl extends UnicastRemoteOb ject implements PatientInter face
In PatientInterfac e, i have this class
public interface PatientInterfac e extends Remote {
public String getPatientNumme r() throws RemoteException ; public String getSofiNummer() throws RemoteException ; public String getVerzekerings Ma() 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 PatientInterfac e
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 implementatio n of the getPostCode() method declared in the PatientInterf ace interface.
Ray
-- XML is the programmer's duct tape.
Ray
--
XML is the programmer's duct tape.
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 PatientInterfac e 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 PatientInterfac e 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 UnicastRemoteOb ject implements PatientInterfac e { 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" <no****@twcny.r r.com> schreef in bericht news:ji******** ***********@twi ster.nyroc.rr.c om...
Irlan agous wrote:
I have an claass that implements another one
public class PatientImpl extends UnicastRemoteOb ject implements PatientInte rface
In PatientInterfac e, i have this class
public interface PatientInterfac e extends Remote {
public String getPatientNumme r() throws RemoteException ; public String getSofiNummer() throws RemoteException ; public String getVerzekerings Ma() 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 PatientInterfac e
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 implementati on of the getPostCode() method declared in the PatientInter face interface.
Ray
-- XML is the programmer's duct tape.
Ray
-- XML is the programmer's duct tape.
Irlan agous wrote: 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?
I'm sorry I do not understand this question.
What i mean by this question is. PatienInterface is declared like this
public interface PatientInterfac e 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
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
--
XML is the programmer's duct tape. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Medi Montaseri |
last post by:
Hi,
I think my problem is indeed "how to implement something like java's
final in C++"
The long version....
I have an abstract base class which is inherited by several concrete
classes.
I have a group of methods that I'd like to implement in the base class
|
by: Oplec |
last post by:
Hi,
I am learning standard C++ as a hobby. The C++ Programming Language :
Special Edition has been the principal source for my information. I read the
entirety of the book and concluded that I had done myself a disservice by
having not attempted and completed the exercises. I intend to rectify that.
My current routine is to read a chapter and then attempt every exercise
problem, and I find that this process is leading to a greater...
|
by: sys |
last post by:
I have a Web service and I want it to implement an interface that I specified, say IService. So my Web service class looks like this
public class Service1 : System.Web.Services.WebService, IServic
public Service1(
InitializeComponent()
[WebMethod
|
by: Charles Law |
last post by:
This is going to seem like a basic OO question, but it comes up and bites me
every now and again.
Suppose we have a multi-tiered protocol to implement, what is the logical,
OO way to design the handler? For example, let's say that we have to
implement the ISO 7-layer protocol, or something like an Allen-Bradley
master-slave protocol. At the lowest layer we might only need to top and
tail the data being transported, such as DLE STX
DLE...
|
by: Kai-Uwe Bux |
last post by:
Hi folks,
does anyone see a way to implement the following enum_limits template:
template < typename EnumType >
struct enum_limits {
// first element in range of EnumType:
static EnumType const min;
| |
by: Peter |
last post by:
I want to copy a parent class instance's all datas to a child's. It's
actually a C++'s copy constructor. But why the following code does not
work - there is a compile error! How it should look like?
(The background is I don't know (I don't care indeed) all members in
DataGrid, so I don't want to copy all members in DataGrid one by one.)
public class GridEx : DataGrid
{
public GridEx()
|
by: Stacey Levine |
last post by:
I have a webservice that I wanted to return an ArrayList..Well the service
compiles and runs when I have the output defined as ArrayList, but the WSDL
defines the output as an Object so I was having a problem in the calling
program. I searched online and found suggestions that I return an Array
instead so I modified my code (below) to return an Array instead of an
ArrayList. Now I get the message when I try to run just my webservice...
|
by: Paul |
last post by:
Hi all,
I'm trying to implement IList and keep getting an error when trying to
implement GetEnumerator().
My class has a List<String> and I've been using its methods as return
types for IList, but I can't seem to figure the the get enumerator
section. I try:
//IEnumerable
public IEnumerator GetEnumerator()
|
by: Benjamin |
last post by:
I am attempting to create multiple itterators for a custom class that I have created. Basically I have a class that I am populating using XML de-serialization. I want to be able to loop through the class using a foreach loop. I realize that in order to do this I need to create my own GetEnumerator that implements the movenext and current methods.
The problem that I have is that I have been able to implement this for only one of the classes...
|
by: John |
last post by:
Hi, gurus,
How can I implement the following feature in C#:
Set objGroup = GetObject("WinNT://" & strComputer & "/" & strGroup & ", group")
For Each objMember In objGroup.Members
WScript.Echo vbCrLf & " Name: " & objMember.Name
Next
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |