override method
- From: "Daniel" <dannyman263@xxxxxxxxx>
- Date: Fri, 17 Jun 2005 00:43:37 +0200
I want to implement rmi and get this error
test/PatientGui.java [151:1] getEnToonData() in test.PatientGui cannot
override getEnToonData() in test.ViewModel; overridden method does not throw
java.rmi.RemoteException
Public class PatientGui
void getEnToonData() throws java.rmi.RemoteException
{
:
}
Public Class ViewModel
void getEnToonData()
{
System.out.println("Moet nog gemaakt worden in de sub-class");
}
If i remove the throws java.rmi.RemoteException, the compiler tells me it
should be thrown.
How can i solve this?
Thanks
Daniel
.
- Follow-Ups:
- Re: override method
- From: Ian Shef
- Re: override method
- Prev by Date: SET CLASSPATH
- Next by Date: Re: SET CLASSPATH
- Previous by thread: SET CLASSPATH
- Next by thread: Re: override method
- Index(es):
Relevant Pages
|