not sure if this is obvious to others, but it wasn't to me, so i
thought i'd mention it in case it helps others.
the example code uses a default 'Person' constructor, but my sample
files didn't have one. to clear the error message i added a default
constructor to 'Person.java'. a comment to the effect that the
'PersonAnother2' constructor would require the arguments stated in the
'Person' constructor, should keep things clear.
package mypersoninterfaceproject;
public class PersonAnother2 extends Person implements
PersonInterfaceAnother{
PersonAnother2(){
}
// Implement a new method
public void newMethod(){
// Some code
}
}
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en