[java programming] Lab1027-6.1
To: happy27...@yahoo.com
Date: Wednesday, July 22, 2009, 6:52 PM
Hello,
I traced out the error.
1.)
The return type of reflect method is void and then you are calling that
method in
System.out.println( "This is the new method = " + personA
Dear Java Programmer:
INTERFACE WITH METHOD SIGNATURE
Package mypersoninterface
public interface PersonInterfaceAnother {
// Add another method to the interface
void reflect();
}//PersonInterfaceAnother interface
CONCRETE CLASS IMPLEMENTATION:
Package mypersoninter
Dear Java Programmer:
I have an interface with a method declared as such
“void newMethod();”
I implement this method in the concrete class as the following:
public void newMethod{
System.out.print(“New Method implemented in concrete class.);
}
In the Main class I create a new object of this